allow negative coordinates in regex