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 6
Title Test Details Phone number United States (555-555-1234)
Expression
\d{3}[.-]?\d{3}[.-]?\d{4}
Description
Phone number United States (555-555-1234) . From http://tools.twainscanning.com/getmyregex .
Matches
555-555-1234
Non-Matches
555-55-1234
Author Rating: Not yet rated. Jose Luna
Title Test Details Time HH:MM (23:30)
Expression
(?:2[0-3]|[01]?[0-9])[:.][0-5]?[0-9]
Description
Time HH:MM (23:30). From http://tools.twainscanning.com/getmyregex .
Matches
23:30 | 23.30
Non-Matches
23-30
Author Rating: Not yet rated. Jose Luna
Title Test Details Time HH:MM AM/PM (11:30 PM)
Expression
(?:1[0-2]|0?[1-9])[:.][0-5]?[0-9][\t ]+(?:AM|PM)
Description
Time HH:MM AM/PM (11:30 PM) . From http://tools.twainscanning.com/getmyregex .
Matches
11:30 PM
Non-Matches
11:61
Author Rating: Not yet rated. Jose Luna
Title Test Details Time HH:MM:SS (23:30:55)
Expression
(?:2[0-3]|[01]?[0-9])[:.][0-5]?[0-9][:.][0-5]?[0-9]
Description
Time HH:MM:SS (23:30:55) . From http://tools.twainscanning.com/getmyregex .
Matches
23:30:55
Non-Matches
23:30:65
Author Rating: Not yet rated. Jose Luna
Title Test Details URL http or https (http://twainscanning.com)
Expression
https?://[\d.A-Za-z-]+\.[A-Za-z]{2,6}/?
Description
URL http or https (http://twainscanning.com). From http://tools.twainscanning.com/getmyregex .
Matches
http://twainscanning.com
Non-Matches
ftp://twainscanning.com
Author Rating: Not yet rated. Jose Luna
Title Test Details URL http, https or www (www.twainscanning.com)
Expression
(?:https?://|www\.)[\d.A-Za-z-]+\.[A-Za-z]{2,6}/?
Description
URL http, https or www (www.twainscanning.com). From http://tools.twainscanning.com/getmyregex .
Matches
www.twainscanning.com
Non-Matches
twainscanning.com
Author Rating: Not yet rated. Jose Luna
   Displaying page 1 of 1 pages; Items 1 to 6

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