I have some obfuscated code which call functions, like this:
getAny([["text with symbols \"()[],.;\" and maybe 'ImVerySeriousFn'"], ...]);
setAny([["other text with \"()[],.;\""], ...]);...
Arguments contain random text. Functions follow each other without a new line.
How can I get arguments of getAny, setAny and other functions, using set of regular expressions?
I need this result:
regex1 result: [["text with symbols \"()[],.;\" and maybe 'ImVerySeriousFn'"], ...]
regex2 result: [["other text with \"()[],.;\""], ...]
...
I tried write regex1:
getAny\((.*)\)
but matching result also contains setAny call
[["text with symbols \"()[],.;\" and maybe 'ImVerySeriousFn'"], ...]);setAny([["other text with \"()[],.;\""], ...]
When I tried:
getAny\((.*?)\)
matching result break argument string
[["text with symbols \"(
I can't split by ; or ); because text in arguments can contains symbols ; or );
maybe impossible to do it using regex?
[gs]etAny\((.*)\)[gs]etAny\((.*)\)- it does not work.