I receive the latitude and longitude from GPS with this format:
Latitude : 78°55\'44.29458\"N
I need convert this data to:
latitude: 78.9288888889
I have slightly modified the re:
parts = re.split('[^\d\w\.]+', dms)
And as @Falko advised to make it work, you can either use double double quotes or escape your quotes characters
parse_dms("53°19\'51.8\"N")