use regex to extract location