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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Latitude
Expression
([0-8][0-9]|[9][0])°' '[0-9][0-9]\.[0-9]´' '[NS]
Description
Marine Latitude
Matches
51° 31.7´ N
Non-Matches
51.317° N
Author Rating: Not yet rated. Daniel
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: Too many minutes...
Name: Neo
Date: 2/16/2012 11:30:24 PM
Comment:
Your expression would allow more than 60 minutes, eg 51° 61.7´ N. Try something like this: ([0-8][0-9]|[9][0])°' '([0-5][0-9]\.[0-9]|60.0)´' '[NS] Or even better: ([0-8]\d°\ \d\d\.\d*\´\ [NS]|90\°\ 00.0*\´\ [NS])


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