I'm trying to create a regular expression for the following date/time format:
1970-09-29T00:00:00.000+0000
My current regex is:
[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{4}:[0-9]{2}:[0-9]{2}+[0-9]+
I'm trying to create a regular expression for the following date/time format:
1970-09-29T00:00:00.000+0000
My current regex is:
[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{4}:[0-9]{2}:[0-9]{2}+[0-9]+
Might be missing some digits there.
The regex should be ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}\+\d{4}$
[0-9]{2} - this is month, right? Shouldn't it look like that: (0[0-9])|(1[0-2]) ??
And again [0-9]{2} for day: ([0-2][0-9])|(3[01]) [0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{4}:[0-9]{2}:[0-9]{2}+[0-9]+
I'm not sure about "time" part.
PS You have to be more specific, because I'm not sure if I understand.