Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(([A-z.]{3,9}|[0-9]{1,2}) [0-9]{1,2}[, ]{1,2}[0-9]{1,4})|(([A-z.]{3,9}|[0-9]{1,2})[ ,][0-9]{1,4})|([0-9]{1,4})
/
g

Description

This catches a few formats for dates, including the year, and seperates as much as I think at the moment is possible to make it easy to manipulate the needed data points in the expression

Submitted by Luis Perez - 9 years ago