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 5
Title Test Details Longitude regex
Expression
(^\+?1[0-7]\d(\.\d+)?$)|(^\+?([1-9])?\d(\.\d+)?$)|(^-180$)|(^-1[1-7]\d(\.\d+)?$)|(^-[1-9]\d(\.\d+)?$)|(^\-\d(\.\d+)?$)
Description
first regex put on site. longitude must>=-180 & <180.
Matches
141.44 | +179.99999 | -180 54
Non-Matches
182 | 1FS.45 | -999 | .54
Author Rating: Not yet rated. daniel cai
Title Test Details Latitude
Expression
(^\+?([1-8])?\d(\.\d+)?$)|(^-90$)|(^-(([1-8])?\d(\.\d+)?$))
Description
Latitude must<90 >=-90
Matches
5.4 | -0.58 | -90 | +87
Non-Matches
-120 | +1.4F | 90
Author Rating: Not yet rated. daniel cai
Title Test Details time
Expression
^((1[01])|(\d)):[0-5]\d(:[0-5]\d)?\s?([apAP][Mm])?$
Description
validate time in hh:mm:ss hh:mm hh:mm:ss pm(am,PM,AM) <12h
Matches
11:23:43PM | 3:25:35 | 1:23 am
Non-Matches
12:01:01 | 3.14pm | 01:24AM
Author Rating: Not yet rated. daniel cai
Title Test Details html <td>
Expression
^<\s*(td|TD)\s*(\w|\W)*\s*>(\w|\W)*</(td|TD)>$
Description
match <td ***>***</td> in html,so any other html mark with<sth></sth> is just do a little change to this
Matches
<td>hello kitty</td> | <TD WIDTH='20></TD> | <TD >&NBSP;</td>
Non-Matches
<td>< /td> | <TD HELLO</td> | <table></table>
Author Rating: Not yet rated. daniel cai
Title Test Details Ip address
Expression
^((([1]\d{2})|(22[0-3])|([1-9]\d)|(2[01]\d)|[1-9]).(([1]\d{2})|(2[0-4]\d)|(25[0-5])|([1-9]\d)|\d).(([1]\d{2})|(2[0-4]\d)|(25[0-5])|([1-9]\d)|\d).(([1]\d{2})|(2[0-4]\d)|(25[0-5])|([1-9]\d)|\d))$
Description
match ip address from 1.0.0.0 to 223.255.255.255
Matches
192.168.0.1 | 223.255.255.255 | 9.0.0.0
Non-Matches
0.10.2.52 | 255.255.255.255 | 127.0.257.1
Author Rating: The rating for this expression. daniel cai
   Displaying page 1 of 1 pages; Items 1 to 5

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