Regex to get Latitude and Longitude

Hi Team,

I need to get the latitude and longitude values from the below string. Could anyone help me for regex?

Latitude = 12.9534482

Longitude = 80.115766 - Both these values are in the below url,+47,+Mterwer+Main+Rd,+Ambal+Nagar,+Kashmina,+USA,+A+p+585566/@12.9534482,80.115766,12z/data=!4m8!4m7!1m0!1m5!1m1!1s0x3a525e7821183385:0xcc548de505b18a05!2m2!1d80.1858065!2d12.9534576


This will give you both latitude and longitude.

Then use string manipulation activities to get those two values seperately



Use below method

And split with , take arra(0) as Latitude and Take Array(1) as Longitude


Hi @HareeshMR

Thank you. Could you please let me know the required regex to match the below pattern


Directions remains same and the value inside may change like Directions(3.45mi) or Directions(6.57mi)


I don’t find those values in the text above @Ula

@Ula Try this regex

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.