RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 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
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: exception
Name: ya
Date: 4/12/2012 4:18:51 AM
Comment:
-180 54 not match... even -180.54.


Title: exception
Name: ya
Date: 4/12/2012 4:12:38 AM
Comment:
-180 54 not match... even -180.54.


Title: exception
Name: ya
Date: 4/12/2012 4:11:59 AM
Comment:
-180 54 not match... even -180.54.


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