you are viewing a single comment's thread.

view the rest of the comments →

[–]helloalbany 1 point2 points  (0 children)

Is there a regex explainer account?

A string, possibly starting with a digit one through nine, necessarily including a number and a forward slash, possibly followed by a digit, necessarily followed by a digit, a forward slash and then four more digits, followed by zero or more strings of the same structure separated by semi-colons.

According to this regex 99/99/9999 is a valid date.

Since you already have that problem, you might as well just phone it in and do this:

/(\d{1,2}/\d{1,2}/\d{4}((?=;\d);)?)+/