12-01-2011, 06:40 PM
Thanks for this, although I had to create my own for my current Project - Still works efficiently.
Regex for a Date in the order: "MONTH DD, YYYY"
Regex for a Date in the order: "MONTH DD, YYYY"
PHP Code:
Regex.IsMatch(Line, "((?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?" + _
"|Sep(?:tember)?|Sept|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?))(\s+)((?:(?:[0-2]?\d{1})|(?:[3][01]{1})))(?![\d])(.)(\s+)" + _
"((?:(?:[1]{1}\d{1}\d{1}\d{1})|(?:[2]{1}\d{3})))(?![\d])", RegexOptions.IgnoreCase Or RegexOptions.Singleline)
"If you cannot explain something simply, then you do not understand it at all." - Albert Einstein
"The best way to predict the future is to invent it." - Alan Kay
"The best way to predict the future is to invent it." - Alan Kay