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 2
Title Test Details Canada postal code
Expression
^[ABCEGHJKLMNPRSTVXYabceghjklmnprstvxy]{1}\d{1}[A-Za-z]{1}\d{1}[A-Za-z]{1}\d{1}$
Description
Matches the Canadian postal code with no space between.
Matches
M4S1G9 | m6p1l1 | m4s1G9
Non-Matches
M4S 1G9 | m6p 1l1 | m4s 1G9
Author Rating: The rating for this expression. Nassim Ghods
Title Test Details Time hh:mm am/pm
Expression
^([0][1-9]|[1][0-2]):[0-5][0-9] {1}(AM|PM|am|pm)$
Description
Matches if the string is in hh:mm am/pm format. Also the hour and minute values should have left padding 0's if they are single digit.
Matches
03:45 am | 10:24 PM | 01:03 pm
Non-Matches
8:15 am | 16:10 | 10:60 pm | 10:13
Author Rating: Not yet rated. Nassim Ghods
   Displaying page 1 of 1 pages; Items 1 to 2

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