Hi, I have very little experience using regular expressions and I need to parse an angle value expressed as bearings, using regular expressions, example:
"N45°20'15.3"E"
Which represents: 45 degrees, 20 minutes with 15.3 seconds, located at the NE quadrant.
The restrictions are:
- The first character can be "N" or "S"
- The last character can be "E" or "W"
- 0 <= degrees <= 59
- 0 <= minutes <= 59
- 0 <= second < 60, this can be ommited.
Python preferably or any other language.
Thanks