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

@Boopathi,

This will give you both latitude and longitude.

Then use string manipulation activities to get those two values seperately

image

@Boopathi

Use below method

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

system.Text.RegularExpressions.Regex.Match(strOutputDataTable,β€œ(?<=/@).*(?=/data)”).ToString

Hi @HareeshMR

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

Directions(2.17mi)

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

Thanks,
Ula

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

@Boopathi Try this regex

1 Like

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