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 18
Title Test Details Time Format
Expression
(\d{1,2}(\:|\s)\d{1,2}(\:|\s)\d{1,2}\s*(AM|PM|A|P))
Description
This match time format
Matches
11:13:33 PM | 00:00:00 AM | 11 13 46 AM
Non-Matches
11:13 PM | 00:00 AM
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Date Format
Expression
\b(0?[1-9]|1[0-2])(\/)(0?[1-9]|1[0-9]|2[0-9]|3[0-1])(\/)(200[0-8])\b
Description
Matches the valid date format MM/DD/CCYY Year from 2000 to 2008 and the month will accept till 12 and the day will accept till 31
Matches
01/02/2006 | 12/31/2007 | 1/1/2008
Non-Matches
01/02/1999 | 13/32/2008 | 01-31-2008
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Date Format
Expression
\b(0?[1-9]|1[0-2])(\-)(0?[1-9]|1[0-9]|2[0-9]|3[0-1])(\-)(200[0-8])\b
Description
Matches the valid date format MM-DD-CCYY Year from 2000 to 2008 and the month will accept till 12 and the day will accept till 31
Matches
01-02-2006 | 12-31-2007 | 1-1-2008
Non-Matches
01-02-1999 | 13-32-2008 | 01/31/2008
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details American Dollar Amount Format
Expression
(\$\s*[\d,]+\.\d{2})\b
Description
Validate American Dollar Amount Format
Matches
$ 417,000.00 | $ 280.00 | $ 10.00
Non-Matches
$ 12234566 | $ 540,453.000 | $ 123,000 | $ 200,000.0
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Validate Numbers
Expression
\b[1-9]\b
Description
Validate the numbers 1 to 9
Matches
1 | 5 | 9
Non-Matches
0 | 15 | 19
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Validate Numbers
Expression
\b4[0-9]\b
Description
Validate the numbers in between 39 to 50 (i.e 40 to 49)
Matches
40 | 46 | 49
Non-Matches
4 | 50 | 39
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Validate Date Format
Expression
\b(0?[1-9]|1[0-2])(\/)(0?[1-9]|1[0-9]|2[0-9]|3[0-1])(\/)(0[0-8])\b
Description
Matches the valid date format MM/DD/YY Year from 2000 (00) to 2008 (08) and the month will accept till 12 and the day will accept till 31
Matches
01/02/06 | 12/31/07 | 1/1/08
Non-Matches
01/02/1999 | 13/32/08 | 01-31-2008
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Validate Date Format
Expression
\b(0?[1-9]|1[0-2])(\-)(0?[1-9]|1[0-9]|2[0-9]|3[0-1])(\-)(0[0-8])\b
Description
Matches the valid date format MM-DD-YY Year from 2000 (00) to 2008 (08) and the month will accept till 12 and the day will accept till 31
Matches
01/02/06 | 12/31/07 | 1/1/08
Non-Matches
01/02/1999 | 13/32/08 | 01-31-2008
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Validate Time Format (Railway Time 24 hrs)
Expression
\b(0[0-9]|1[0-9]|2[0-3])(\:)(0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])(\:)(0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])\b
Description
It will matches the railway time format that 00:00:00 to 23:59:59
Matches
00:00:00 | 23:59:59 | 10:00:00
Non-Matches
24:0:00 | 20:60:60 | 15:00
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Validate Time format (Standard time 12 hrs)
Expression
\b(0[0-9]|1[0-1])(\:)(0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])(\:)(0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])\b
Description
It will matches the Standard time format that 00:00:00 to 11:59:59
Matches
00:00:00 | 11:59:59 | 10:00:00
Non-Matches
20:00:00 | 10:60:60 | 15:00
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Validate Time format with AM,PM (Standard time 12 hrs)
Expression
\b(0[0-9]|1[0-1])(\:)(0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])(\:)(0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])\s*(AM|PM|A|P)\b
Description
It will matches the Standard time format that 00:00:00 AM to 11:59:59 PM
Matches
00:00:00 AM | 11:59:59 PM | 10:00:00 AM
Non-Matches
00:00:00 | 11:59:59 | 15:00 PM
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Validate Date format Month Day, CCYY
Expression
\b(((J(ANUARY|UNE|ULY))|FEBRUARY|MARCH|(A(PRIL|UGUST))|MAY|(SEPT|NOV|DEC)EMBER|OCTOBER))\s*(0?[1-9]|1[0-9]|2[0-9]|3[0-1])\s*(\,)\s*(200[0-9])\b
Description
VALIDATE THE DATE FORMAT FULL MONTH DAY, CCYY i.e August 30, 2006
Matches
JANUARY 26, 2007 | MARCH 1, 2001 | DECEMBER 31, 2005
Non-Matches
JAN 26, 2001 | JULY 31 2005 | AUGUST 01, 08
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Validate Date format Month Day, YY
Expression
\b(((J(ANUARY|UNE|ULY))|FEBRUARY|MARCH|(A(PRIL|UGUST))|MAY|(SEPT|NOV|DEC)EMBER|OCTOBER))\s*(0?[1-9]|1[0-9]|2[0-9]|3[0-1])\s*(\,)\s*(0[0-9])\b
Description
VALIDATE THE DATE FORMAT FULL MONTH DAY, YY i.e August 30, 06 (2006)
Matches
JANUARY 26, 07 | MARCH 1, 01 | DECEMBER 31, 05
Non-Matches
JAN 26, 01 | JULY 31 05 | AUGUST 01, 2008
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Validate Date format Month Day, CCYY
Expression
\b((J(AN|UN|UL))|FEB|MAR|(A(PR|UG))|MAY|SEP|NOV|DEC|OCT)\s*(0?[1-9]|1[0-9]|2[0-9]|3[0-1])\s*(\,)\s*(200[0-9])\b
Description
VALIDATE THE DATE FORMAT SHORT MONTH DAY, CCYY i.e Aug 30, 2006
Matches
JAN 26, 2007 | MAR 1, 2001 | DEC 31, 2005
Non-Matches
JANUARY 26, 2001 | JUL 31 2005 | AUGUST 01, 08
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Validate Date format Month Day, YY
Expression
\b((J(AN|UN|UL))|FEB|MAR|(A(PR|UG))|MAY|SEP|NOV|DEC|OCT)\s*(0?[1-9]|1[0-9]|2[0-9]|3[0-1])\s*(\,)\s*(0[0-9])\b
Description
VALIDATE THE DATE FORMAT SHORT MONTH DAY, YY i.e Aug 30, 06 (2006)
Matches
JAN 26, 07 | MAR 1, 01 | DEC 31, 05
Non-Matches
JANUARY 26, 01 | JUL 31 05 | AUGUST 01, 08
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Match String with keyword
Expression
^.*(?:kumar).*$
Description
This will match those string which contains the word "kumar"
Matches
my name is kumar
Non-Matches
I am mohan
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Match the numbers
Expression
(\b(1|2|3|4|5|6|7|8|9)?[0-9]\b)
Description
Match the numbers 1 to 99
Matches
1 to 99
Non-Matches
100, 200, 500
Author Rating: Not yet rated. Ajesh Kumar CM
Title Test Details Match the numbers
Expression
(\b(10|11|12|13|14|15|16|17|18|19)[0-9]\b)
Description
Match the numbers 100 to 199
Matches
100 to 199
Non-Matches
200, 300, 1, 55, 99
Author Rating: Not yet rated. Ajesh Kumar CM
   Displaying page 1 of 1 pages; Items 1 to 18

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