| Title |
Test
Find
Time
|
| Expression |
^((0?[1-9]|1[012])(:[0-5]\d){0,2}(\ [AP]M))$|^([01]\d|2[0-3])(:[0-5]\d){0,2}$ |
| Description |
This RE validates times patterns. |
| Matches |
1 AM | 23:00:00 | 5:29:59 PM |
| Non-Matches |
13 PM | 13:60:00 | 00:00:00 AM |
| Author |
Rating:
Michael Ash
|
| Source |
Michael Ash |
| Your Rating |
|
Title: http://www.kobe7playoff.com/
Name: kobe 7
Date: 5/18/2012 2:10:43 AM
Comment:
http://www.kobe7playoff.com/
http://www.kobe7playoff.com/nike-lebron-9ix-c-24.html
http://www.kobe7playoff.com/dwyane-wade-shoes-c-15.html
Title: http://www.myairmax2012shoesoutlet.com/
Name: nike air max mens
Date: 5/18/2012 12:00:01 AM
Comment:
http://www.myairmax2012shoesoutlet.com/
http://www.myairmax2012shoesoutlet.com/nike-air-max-2012-c-1.html
http://www.myairmax2012shoesoutlet.com/nike-air-max-2011-c-4.html
Title: http://www.roseshoesoutlet2012.com
Name: Adizero Rose 1.0
Date: 5/17/2012 11:49:47 PM
Comment:
http://www.roseshoesoutlet2012.com
http://www.roseshoesoutlet2012.com/adidas-adizero-rose-10-c-2.html
http://www.roseshoesoutlet2012.com/adizero-crazy-light-c-3.html
Title: Senior A/P
Name: Steve Malikoff
Date: 3/17/2011 8:46:58 PM
Comment:
Works just fine, two slight improvements:
1) Change the '\ ' (slosh-space) to '\s?' (slosh-s-questionmark) to allow a space or no space gap ie. 4:20 PM or 4:20PM
2)Expand the '[AP]M' to '[AaPp][Mm]' to allow lowercase
Title: erer
Name: erer
Date: 1/7/2007 5:02:14 AM
Comment:
ere http://regexlib.com/REDetails.aspx?regexp_id=370&commentId=15014
Title: Web Developer
Name: Ismail Mayat
Date: 7/14/2004 10:48:55 AM
Comment:
Excellent helped alot on regular expression validator in asp.net page where i had a time field text box that needed validation.
Title: Developer
Name: Chiu Kwing
Date: 3/16/2004 2:09:26 AM
Comment:
Very nice. Technically helpful. but it will be nicer if a caption (a large) is provided for each regularexpression