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 8
Title Test Details Pattern Title
Expression
^(([0]?[0-5][0-9]|[0-9]):([0-5][0-9]))$
Description
This regex is to validate the time of a ~60 minute CD where the most time on the CD is 59:59 (minutes:seconds). It is derived from Ken Madden's time regex for a project for Erik Porter (Windows/Web guru). Written by Jason Gaylord.
Matches
30:05 | 5:05 | 02:59
Non-Matches
25:7 | 5m:16 | 60:60
Author Rating: The rating for this expression. Jason N. Gaylord
Title Test Details Pattern Title
Expression
^\(?082|083|084|072\)?[\s-]?[\d]{3}[\s-]?[\d]{4}$
Description
I modified the existing phone number regex for another user looking to only allow 082, 083, 084, or 072 exchanges. Written by Jason Gaylord
Matches
082-131-5555 | 083-145-654 | 072 555 1212
Non-Matches
131-253-4564 | 5551212 | 800 555 1212
Author Rating: Not yet rated. Jason N. Gaylord
Title Test Details Pattern Title
Expression
^((AL)|(AK)|(AS)|(AZ)|(AR)|(CA)|(CO)|(CT)|(DE)|(DC)|(FM)|(FL)|(GA)|(GU)|(HI)|(ID)|(IL)|(IN)|(IA)|(KS)|(KY)|(LA)|(ME)|(MH)|(MD)|(MA)|(MI)|(MN)|(MS)|(MO)|(MT)|(NE)|(NV)|(NH)|(NJ)|(NM)|(NY)|(NC)|(ND)|(MP)|(OH)|(OK)|(OR)|(PW)|(PA)|(PR)|(RI)|(SC)|(SD)|(TN)|(TX)|(UT)|(VT)|(VI)|(VA)|(WA)|(WV)|(WI)|(WY))$
Description
This validates the states and territories of the United States in a 2 character uppercase format. Very poor excuse for a regular expression! ;) Written by Jason Gaylord.
Matches
NY | PA | NJ
Non-Matches
Pennsylvania | Pa | pa
Author Rating: The rating for this expression. Jason N. Gaylord
Title Test Details Pattern Title
Expression
^([\(]{1}[0-9]{3}[\)]{1}[ ]{1}[0-9]{3}[\-]{1}[0-9]{4})$
Description
It is the exact phone number regular expression for '(###) ###-####'. Written by Jason Gaylord.
Matches
(555) 555-1212
Non-Matches
555-1212 | 1-800-555-1212 | 555-555-1212
Author Rating: The rating for this expression. Jason N. Gaylord
Title Test Details Pattern Title
Expression
^\d+$
Description
This is derived from Steven Smith's Integer expression (http://www.regexlib.com/REDetails.aspx?regexp_id=51). The only difference is that this does not accept blanks. Written by Jason N. Gaylord.
Matches
2 | 50 | 0
Non-Matches
-15 | 1.2
Author Rating: The rating for this expression. Jason N. Gaylord
Title Test Details Pattern Title
Expression
^(\d{3}-\d{3}-\d{4})*$
Description
This expression is a very simplex expression that allows null values or 3 digits, dash, 3 digits, dash, 4 digits. It validates a basic US phone number. Written by Jason N. Gaylord.
Matches
555-555-1212 | 123-456-7890
Non-Matches
555.555.1212 | (555) 555-1212 | 5555551212
Author Rating: Not yet rated. Jason N. Gaylord
Title Test Details Pattern Title
Expression
^(\d{2}-\d{2})*$
Description
This expression is a simplex expression that checks to see if a value is a valid phone system terminal number. It allows a null value or 2 digits, dash, 2 digits. Written by Jason N. Gaylord.
Matches
00-00 | 54-68
Non-Matches
1235 | 0 | 5-789
Author Rating: Not yet rated. Jason N. Gaylord
Title Test Details Pattern Title
Expression
\{[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\}
Description
This matches the specific value for a unique identifier (GUID) from SQL server. Written by Jason N. Gaylord.
Matches
{A2B95C88-F211-4A2B-9729-2CFAB45C8984} | {A2B95C88-F211-4A2B-9729-2CFAB45C8123} | {A2B95C88-F211-4A2
Non-Matches
A2B95C88-F211-4A2B-9729-2CFAB45C8984 | A2B95C88F2114A2B9729-2CFAB45C8984 | 123456a
Author Rating: The rating for this expression. Jason N. Gaylord
   Displaying page 1 of 1 pages; Items 1 to 8

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