regex fix and return false if not parsable