2
I am making a method that will import some data, and before the import I need to check if some fields are correctly filled, the fields should come this way:
Example:
Jan/Seg
Fev/Ter
Mar/Qui
The data must be in this exact format, where the first 3 characters represent the prefix of the month, followed by a bar and after 3 characters representing the day of the week.
I need to check if the prefix of the month is valid and if the prefix of the week too, and it needs to contain both, I thought to make a regex that does this, but I do not know how to do in C#
, Does anyone know a good way to do that?
Thank you very much.
How’s the data coming? Valid data are only those whose lines have 7 characters, the first 3 being the prefix of the month, the fourth the bar and the last 3 characters the prefix of the day of the week?
– Jefferson Quesado
Exact, the data will come from an excel spreadsheet and need to be in this exact format, I will add in question this information.
– William Cézar