Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated deg min sec symbols on first bit to see if it works


Code Block
locationData = "Liverpool, England: 53° 25′ 0″ N 3. 0.0′ 0.0″"

We could use the split() function of string and then go through and strip out the comma between Liverpool and England, and all the special location characters. Or we could do it all in one step with a regular expression. The syntax for doing this is a little bit strange. First, we have to define a regular expression, putting anything we are interested in in parentheses.