Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: d m s for symbols as symbols get eaten by something and spat out as ???

...

Code Block
locationData = "Liverpool, England: 53°53d 25′25m 0″0s N 3d 0′0m 0″0s"

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.

...

Code Block
["Liverpool, England: 53.53d 25.25m 0.0s N 3.3d 0.0m 0.0s", "Liverpool", "England", "53", "25", "0", "N", "3", "0", "0"]

...