I have this URL
I am trying to Extract 31.888433,73.263572 from the URL
and send 31.888433 to TextBox 1
and 73.263572 to TextBox 2
Can you give me an example how can i do this with regex or anything else
I have this URL
I am trying to Extract 31.888433,73.263572 from the URL
and send 31.888433 to TextBox 1
and 73.263572 to TextBox 2
Can you give me an example how can i do this with regex or anything else
4
Answers
Finally Made a working Code Myself
You can use string.split(). This method takes an array of chars which are the discriminants for the splitting. The better solution is to split by ‘/’, take the string that starts with ‘@’ and then split it by ‘,’. You’ll have an array with two string: first latitude, second longitude.
Should be immediate using LINQ
The explanation is in the code comments.