Title |
Test
Find
Pattern Title
|
Expression |
(^|\s|\()((([1-9]){1}|([0][1-9]){1}|([1][012]){1}){1}[\/-]((2[0-9]){1}|(3[01]){1}|([01][1-9]){1}|([1-9]){1}){1}[\/-](((19|20)([0-9][0-9]){1}|([0-9][0-9]){1})){1}(([\s|\)|:])|(^|\s|\()((([0-9]){1}|([0][1-9]){1}|([1][012]){1}){1}[\/-](([11-31]){1}|([01][1-9]){1}|([1-9]){1}){1}[\/-](((19|20)([0-9][0-9]){1}|([0-9][0-9]){1})){1}(([\s|\)|:|$|\>])){1}){1}){1}){1} |
Description |
Will match the following date formats: Preceded by a Space, Left-parentheses, or at the beginning of a line. Followed by a Space, Right-parentheses, or Colon(:), word boundary or End of line. Can have / or - as separator. Accepts 2 digit year 00-99 or 4 digit years 1900-2099 (can modify to accept any range) |
Matches |
01/01/2001 | 01-01-2001: | (1-1-01) |
Non-Matches |
13/1/2001 | 1-32-2001 | 1-1-1801 |
Author |
Rating:
David Good
|
Source |
|
Your Rating |
|
Title: Mr.
Name: Pedram Nimreezi
Date: 5/5/2003 12:53:28 AM
Comment:
(654(294-7654 and (654-294-7654 is a false positive.