Test, validate and match regular expressions
This regular expression is designed to match and extract pairs of geographic coordinates, typically latitude and longitude, in decimal degrees. It looks for two numbers separated by an optional comma and space, where each number has one to two integer digits and three to six decimal digits. The pattern also supports an optional positive or negative sign for hemisphere indication (e.g., N/S, E/W). It is ideal for parsing location data from unstructured text.