RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 3
Title Test Details Pattern Title
Expression
^(([1-9]{1})|([0-1][0-9])|([1-2][0-3])):([0-5][0-9])$
Description
Matches 24 hour time format.
Matches
00:00 | 23:59 | 10:10
Non-Matches
24:00 | 00:60 | 25:61
Author Rating: Not yet rated. jeremy chapman
Title Test Details Pattern Title
Expression
^(([1-9]{1})|([0-1][1-2])|(0[1-9])|([1][0-2])):([0-5][0-9])(([aA])|([pP]))[mM]$
Description
Matches 12 hour time format
Matches
1:00Am | 12:59pM | 05:05pm
Non-Matches
00:00am | 05:60pm | 1:00
Author Rating: Not yet rated. jeremy chapman
Title Test Details Pattern Title
Expression
\.txt$
Description
Matches a file extention.
Matches
testfile.txt | .txt | this is a file.txt
Non-Matches
this is not a file.trt | .tst | .text
Author Rating: Not yet rated. jeremy chapman
   Displaying page 1 of 1 pages; Items 1 to 3

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials