Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^((((19|20)(([02468][048])|([13579][26]))-02-29))|((20[0-9][0-9])|(19[0-9][0-9]))-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))$
|
Description |
Based on some of the other patterns on RegExpLib. This is the ISO way of writing dates.
|
Matches |
2002-01-31 | 1997-04-30 | 2004-01-01
|
Non-Matches |
2002-01-32 | 2003-02-29 | 04-01-01
|
Author |
Rating:
Not yet rated.
Knut Hamang
|
Title |
Test
Details
Pattern Title
|
Expression |
^\\(\\[\w-]+){1,}(\\[\w-()]+(\s[\w-()]+)*)+(\\(([\w-()]+(\s[\w-()]+)*)+\.[\w]+)?)?$
|
Description |
Validates UNC Paths, with or without files. Does not validate on shares ($) or local files (c:\xxx).
Thanks to Erlend Oftedal for helping me out with this one!
|
Matches |
\\server\directory\ | \\server\directory with space | \\server\directory1\directory2\file1.xxx
|
Non-Matches |
c:\directory | c:\directory\file.xx | \\server\\directory\file.xx.xx
|
Author |
Rating:
Knut Hamang
|
Displaying page
of
pages;
Items to