Hello, i need to validate a string can be different things. I just need a True - False return value, no groups or things like that. It will be always one line at time to be processed by StringRegEx
Valid:
13:52|String
02:52 XX|String
13:52~SUN, MON, TUE, WED, THU, FRI, SAT|String
02:52 XX~SUN, MON, FRI|String
22/04/2017 13:52|String
22/04/2017 02:52 YY|String
Not Valid
22/04/2017 13:52~Dom|String
I need to validate until and inclusively the | after that i don't care
The XX and YY value are two $sVariable from my script
SUN, MON, TUE, WED, THU, FRI, SAT are fixed value, the can be mixed but always in the same order like
SUN
SUN, TUE, WED
SUN, SAT
The time can be 12 or 24 hours, the date is always in the same format DD/MM/YYYY. If there is a date can't be a day after that ( see not valid )
Well i think is all
Sorry if i don't provide a working code, regex is too way complex.
Thanks