use regex to parse locations.