Just a quick one, what's the best REGEX to pick out dates of this format:
Jun 12 2011 12:00:00:000AM
Months are always 3 letters and days are also 2 digits.
Just a quick one, what's the best REGEX to pick out dates of this format:
Jun 12 2011 12:00:00:000AM
Months are always 3 letters and days are also 2 digits.
/\w{3} \d{2} \d{4} \d{2}:\d{2}:\d{2}:\d{3}(AM|PM)/i
To capture part of it just add some parthensis whenever you need
If you need to validate a string of course don't use REGEX but http://php.net/manual/en/function.checkdate.php