Grabbing the numbers from a string and storing them

How would I go about grabbing numbers in a string and storing them into a variable?
Example: A user inputs longitude and latitude along with the locations name

20.8987/N 156.4305/W Kahului Airport
47.4647/N 8.5492/E Zurich Airport

How do I read each line, get the numbers(doubles) that I want, as well as the location name? And store each in their appropriate variable
Topic archived. No new replies allowed.