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 2
Title Test Details Latitude as decimal
Expression
^-?([1-8]?[0-9]\.{1}\d{1,6}$|90\.{1}0{1,6}$)
Description
Matches a latitude in the range of -90 to 90 degrees, with between 1 and 6 trailing decimal places.
Matches
-90.0 -77.284382 89.999999 1.0001
Non-Matches
-90.1 90.12345 91 -20.1234567 -90 90
Author Rating: The rating for this expression. Nick Floersch
Title Test Details Longitude as decimal
Expression
^-?((([1]?[0-7][0-9]|[1-9]?[0-9])\.{1}\d{1,6}$)|[1]?[1-8][0]\.{1}0{1,6}$)
Description
Matches a longitude in the range of -180 to 180 degrees, with between 1 and 6 trailing decimal places.
Matches
-180.0 180.0 -179.010293 1.123456 -45.012 0.12
Non-Matches
180 -180 180.1 -180.1 0.1234567 190.1
Author Rating: The rating for this expression. Nick Floersch
   Displaying page 1 of 1 pages; Items 1 to 2

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