Hello,
Given a string representation of a Esri polyline feature:
{"paths":[[[-86.762566,36.180317],[-86.760232,36.184474],[-86.75721,36.186857],[-86.75467,36.188519],[-86.752679,36.194005]]],"spatialReference":{"wkid":4326}}
Is there an Arcade expression which supports pattern matching similar to Regular Expression pattern matching? I want to parse the JSON string and extract the longitude value (-86.762566) and the latitude value (36.180317) as separate Double values from the first coordinate pair of the polyline. Similarly, I need to parse the string to locate the last coordinate pair and extract the longitude and latitude values for the point at the other end of the polyline. The coordinate values in the JSON string will not always have the same number of significant decimals. Also, the polyline will not always have the same number of vertices.
Finally, while the coordinate values in the example above are all in North America, that cannot be assumed. The pattern match cannot, for example, assume the longitude will always be negative and the latitude will always be positive.