Extract Lat/Long Coordinates Expression

Does anybody have regex expressions that working to extract the latitude and longitude coordinates from a string as put out by the IP plugin?

I’d like to use the calculate address from coordinates function but can’t find any thing on forum or the internet that I can successfully implement to extract them.

The search box is not an option as I want to store this data on page load.


Before the , extract with regex ^([^,])+

After the , ,[\s\S]*$ and find and replace “,” with “”

1 Like

Nigel this is awesome. Thank you so much. This brings a lot to my apps user location. Keeps the negative values and everything.