Test, validate and match regular expressions
This PCRE regex matches GeoJSON Point objects embedded in JSON strings, such as geolocation metadata from the Twitter/X API. It looks for the literal text {"type":"Point","coordinates":[ and then uses named capture groups 'latitude' and 'longitude' to extract coordinate values consisting of digits, hyphens (negative values), and decimal points. It's useful for quickly parsing location data from tweets or other JSON payloads without invoking a full JSON parser.