Added regex and error checking to grab_imperial