I have a string which contains (amongst other things) information in the following format:
{center: {lat: 64.659779,lng: -7.376897}
Basically I'd like to be able to extract the lat/lng data but I can't figure out how to do it. Also, the lat and lng values range from xx.xxxxxx to -xx.xxxxxx. Could anyone show me how to create a regular expression to capture this info?
{center: {lat: 64.659779,lng: -7.376897}
Basically I'd like to be able to extract the lat/lng data but I can't figure out how to do it. Also, the lat and lng values range from xx.xxxxxx to -xx.xxxxxx. Could anyone show me how to create a regular expression to capture this info?