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

Please support RegExLib Sponsors

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 15 regular expressions found.

   Displaying page 1 of 1 pages; Items 1 to 15
Title Test Details Pattern Title
Expression
^[NS]([0-8][0-9](\.[0-5]\d){2}|90(\.00){2})\040[EW]((0\d\d|1[0-7]\d)(\.[0-5]\d){2}|180(\.00){2})$
Description
Validate location, latitude and longitude separated by space, where latitude is expressed as compass direction (N or S),degrees,minutes,seconds and longitude is expressed as compassdirection (E or W) ,degrees,minutes,seconds. Range check for minutes and seconds (0-59), max.latitude 90.00.00, max longitude 180.00.00
Matches
N90.00.00 E180.00.00 | S34.59.33 W179.59.59 | N00.00.00 W000.00.00
Non-Matches
N91.00.00 E181.00.00 | Z34.59.33 W179.59.59 | N00.00.00 W181.00.00
Author Rating: The rating for this expression. Henri Van Wesemael
Title Test Details 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: Not yet rated. Jason Rutberg
Title Test Details Longitude Validation
Expression
^-?([1]?[1-7][1-9]|[1]?[1-8][0]|[1-9]?[0-9])\.{1}\d{1,6}
Description
Longitude validation (similiar to Latitude Validation) and inspired by the same code
Matches
180.0, -180.0, 98.092391
Non-Matches
181, 180, -98.0923913
Author Rating: The rating for this expression. Jason Rutberg
Title Test Details 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
Title Test Details Latitude
Expression
(^\+?([1-8])?\d(\.\d+)?$)|(^-90$)|(^-(([1-8])?\d(\.\d+)?$))
Description
Latitude must<90 >=-90
Matches
5.4 | -0.58 | -90 | +87
Non-Matches
-120 | +1.4F | 90
Author Rating: Not yet rated. daniel cai
Title Test Details latitude and logitude in decimal format like google-maps us it in links
Expression
^(?<lat>(-?(90|(\d|[1-8]\d)(\.\d{1,6}){0,1})))\,{1}(?<long>(-?(180|(\d|\d\d|1[0-7]\d)(\.\d{1,6}){0,1})))$
Description
Allows extraction of values vio name. tested with dotnet 2003.
Matches
"0,0“, „48.05,11.966667, „90,0“, „-90,-180“
Non-Matches
„05.12345,0“, „90.1234,1“, „1,-180.1“, „0,1.1234567“
Author Rating: The rating for this expression. Juergen Jungwirth
Title Test Details DMS Coordinate
Expression
[0-9]{1,2}[:|°][0-9]{1,2}[:|'](?:\b[0-9]+(?:\.[0-9]*)?|\.[0-9]+\b)"?[N|S|E|W]
Description
Matches common Degree, Minute, Second coordinate values. The last part can be easily modified to be latitude or longitude specific by changing [N|S|E|W] to [N|S] for latitude or [E|W] for longitude.
Matches
12:12:12.223546"N|12:12:12.2246N|15:17:6"S|12°30'23.256547"S
Non-Matches
12.2225|15.25.257S|AA:BB:CC.DDS
Author Rating: The rating for this expression. Kurt
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 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 Location cordinates
Expression
[NS] \d{1,}(\:[0-5]\d){2}.{0,1}\d{0,},[EW] \d{1,}(\:[0-5]\d){2}.{0,1}\d{0,}
Description
Latitude and longitude coordinates separated by a comma in the form: N 0:59:59.99,E 0:59:59.99 No restriction on degrees. Use split on comma to separate Latitude and Longitude then on colon and space for parts to convert into a decimal value.
Matches
N 50:54:44.99,W 4:59:11.0; N 38:55:02.90,W 76:59:31.19; N 22:16:42,E 114:09:32
Non-Matches
N 22:66:61,E 85:00:33; E 00:00:00.00,N 00:00:00.00; N00:00:00.00, E00:00:00.00
Author Rating: Not yet rated. binder hamlyn
Title Test Details Latitude (decimal)
Expression
^-?(?:90(?:(?:\.0{1,6})?)|(?:[0-9]|[1-8][0-9])(?:(?:\.[0-9]{1,6})?))$
Description
[-90.000000 ... 90.000000] Decimal places: up to 6. You can increase precision by replacing {1,6} with {1,your_number}
Matches
-90; -90.0; -89.99; 0; 0.000; 89.99; 90.0; 90
Non-Matches
-100; -90.1; 90.01; 100
Author Rating: Not yet rated. Zygimantas Berziunas
Title Test Details DMS Coordinates
Expression
(-?(90[ :°d]*00[ :\'\'m]*00(\.0+)?|[0-8][0-9][ :°d]*[0-5][0-9][ :\'\'m]*[0-5][0-9](\.\d+)?)[ :\?\"s]*(N|n|S|s)?)[ ,]*(-?(180[ :°d]*00[ :\'\'m]*00(\.0+)?|(1[0-7][0-9]|0[0-9][0-9])[ :°d]*[0-5][0-9][ :\'\'m]*[0-5][0-9](\.\d+)?)[ :\?\"s]*(E|e|W|w)?)
Description
Latitude and Longitude in Degrees Minutes Seconds (DMS) zero padded, separated by spaces or : or (d, m, s) or (°, ', ") or run together and followed by cardinal direction initial (N,S,E,W) Longitude Degree range: -180 to 180 Latitude Degree range: -90 to 90 Minute range: 0 to 60 Second range: 0.00 to 60.00 Note: Only seconds can have decimals places. A decimal point with no trailing digits is invalid.
Matches
40:26:46N,079:56:55W | 40°26′47″N 079°58′36″W | 40d 26m 47s N 079d 58′ 36″ W | 90 00 00.0, 180 00 00.0 | 89 59 50.4141 S 090 29 20.4 E | 00 00 00.0, 000 00 00.0
Non-Matches
90 00 00.001 N 180 00 00.001 E | 9 00 00.00 N 79 00 00.00 E | 9 00 00.00, -79 00 00.00 | 90 61 50.4121 S 090 29 20.4 E | -90 48 50. N -090 29 20.4 E | 90 00 00. N, 180 00 00. E | 00 00 00., 000 00 00.
Author Rating: Not yet rated. David Jacobs
Title Test Details XY Coordinates
Expression
((X|x):-?(180(\.0+)?|[0-1]?[0-7]?[0-9](\.\d+)?))([ ]|,)*((Y|y):-?(90(\.0+)?|[0-8]?[0-9](\.\d+)?))
Description
Latitude and Longitude in Decimal Degrees useful for X (longitude), Y (latitude) coordinate systems such as WGS84. Prefix x: and y: must be used in order. X range: -180.00 to 180.00 Y range: -90.00 to 90.00
Matches
x:180.00, , ,,, Y:-90.000 | x:180y:-90 | X:179.99999, Y:-89.99 | X:50 y:5.540 | x:050y:05.123 | x:0, y:0 | X:-179.99999, Y:-89.99 | X:-180, y:-90 | x:-180.00, Y:-90.000
Non-Matches
x:-180.01, y:-90.001 | x:-180., y:-90. | x:180.01, y:90.001 | x:180., y:90. | x:180-y:90
Author Rating: Not yet rated. David Jacobs
Title Test Details Dell Latitude E5400 battery made with high quality cells
Expression
Dell Latitude E5400 battery
Description
These brand new 5200mAh(11.1V, 6 cells) and 7800mAh(11.1V, 9 cells) replacement Dell Latitude E5400 battery is made with high quality cells , lasting as long as the original battery did. All of our Li-ion replacement batteries for Dell Latitude E5400 have been tested and proven to match and/or exceed original battery performance and 100% compatible with Original Manufacturer Specifications. Every piece of Dell Latitude E5400 laptop battery has been tested on Dell systems to ensure the safety for your Dell laptop. 5200mAh Dell Latitude E5400 battery: http://www.delllaptopbatteryadapter.com/dell-latitude-e5400-battery-6-cell-5200mah-111v-p-60.html http://www.laptopbatteryselling.com/dell-latitude-e5400-battery-6-cell-5200mah-11-1v.html 7800mAh Dell Latitude E5400 laptop battery: http://www.delllaptopbatteryadapter.com/dell-latitude-e5400-laptop-battery-9-cell-7800mah-111v-p-96.html http://www.laptopbatteryselling.com/dell-latitude-e5400-laptop-battery-9-cell-7800mah-11-1v.html
Matches
l'jk
Non-Matches
kj
Author Rating: Not yet rated. white jiane
Title Test Details Google Maps Latitude,Longitude
Expression
^(?<lat>(-?(90|(\d|[1-8]\d)(\.\d{1,6}){0,1})))\,{1}\s?(?<long>(-?(180|(\d|\d\d|1[0-7]\d)(\.\d{1,6}){0,1})))$
Description
Regular expression for Google's format of Latitude and Longitude (if you were to copy and paste from either the Maps application or the web address). Allows 7 decimal places, and an optional space after the comma. A really small extension to Juergen Jungwirth's expression, to allow an optional space between the commas, and an additional decimal place, which is the format that Google often gives.
Matches
"0,0“, „48.05, 11.9666679, „90,0“, „-90,-180“
Non-Matches
„05.12345,0“, „90.1234,1“, „1,-180.1“, „0,1.1234567“
Author Rating: Not yet rated. Andy Jones
   Displaying page 1 of 1 pages; Items 1 to 15

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