I am parsing a webpage and I obtain the following JS function as a string
"translate(737.4170532226562,136.14541625976562)"
I want to parse the string to obtain the two parameters of the function.
I can parse the string upto the '(' and ',' and ')' to get the arguments - I wanted to know if there is any other method to get the parameters from this string function.
/translate\(([0-9\.]+),([0-9\.])\)/. Or you could make atranslate(a,b)function andevalthe string, if you trust the source, of course.