simplified the coordinate matching regex