I have the following:
POLYGON((7.593955993652344 33.70124816894531,3.1060409545898438 24.7247314453125,8.64349365234375 22.052650451660156,14.989128112792969 26.966629028320312,7.593955993652344 33.70124816894531))
I can also have the following:
POLYGON(7.593955993652344 33.70124816894531,3.1060409545898438 24.7247314453125,8.64349365234375 22.052650451660156,14.989128112792969 26.966629028320312,7.593955993652344 33.70124816894531)
Noting the difference in parens. I only always wants the data inside the innermost set of parents so I can split on the commas.
I had something like this let coordFinder = /\(([^)]+)\)/g;
but it's not getting me both cases.