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 Validator
Expression
^(\+|-)?(\d\.\d{1,6}|[1-8]\d\.\d{1,6}|90\.0{1,6})$
Description
Matches decimal latitude notation (like that used by Google maps) Matches -90.000000 through +90.000000 with maximum of 6 decimal places, minimum of 1 decimal place.
Matches
12.345678 -90.000000 0.345 +32.9
Non-Matches
62 90.1 -90.000001 13.1234567 04.123
Author Rating: Not yet rated. Nix
Title Test Details Longitude Validator
Expression
^(\+|-)?(\d\.\d{1,6}|[1-9]\d\.\d{1,6}|1[1-7]\d\.\d{1,6}|180\.0{1,6})$
Description
Matches decimal longitude format like that returned by Google maps. Matches from -180.000000 to +180.000000 with between one and six decimal places.
Matches
180.0 -180.000000 +0.123 -34.675421
Non-Matches
09.123 181.345678 -190.000000
Author Rating: The rating for this expression. Nix
   Displaying page 1 of 1 pages; Items 1 to 2

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