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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Latitude Validation
Expression
^-?([1-8]?[1-9]|[1-9]0)\.{1}\d{1,6}
Description
I was inspired by this regexp - Matches a whole number between 1 and 20 inclusively - because it was doing something I could not find elsewhere so this is how I expanded it to validate lat values
Matches
90.0,-90.9,1.0,-23.343342
Non-Matches
90, 91.0, -945.0,-90.3422309
Author Rating: The rating for this expression. Jason Rutberg
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

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