I have a HTML file having GPS coordinates which I want to extract, I am trying to do this by creating a regEx but so far had no luck.
I am using C# to parse the HTML file
Here’s the sample GPS Data that should be extracted.
S 33 58.254 E 023 53.269
any help would be appreciated.
This is the Sample Text in which GPS coordinates are specified
<span style="text-decoration: underline;">TOURIST INFORMATION</span><br>
Tourism Office <span style="font-style: italic;">(S 33 58.254 E 023
53.269, Gammasi St, 042-281-1098,)
and I need to only extract out S 33 58.254 E 023 53.269
Here is an example in C#, just in case you want to parse the GPS, and not only extract it from the HTML code:
The above example will print:
Edit:
I don’t really know if values like
53.2could be integers, like53, but I had that in count just in case.