I'm trying to match strings similar to Lookup("lookup name", "lookup key")
so I can replace the "lookup key".
I've got a pattern where the lookup key is "3" or 3:
[lL][oO][oO][kK][uU][pP]\(.*?,[ ]*("3"|3)\)
But when I use it on the following input string (which has nested calls) it matches the entire string except for the last parenthesis.
LOOKUP("lookup name1",LOOKUP("lookup name2",3))
How do I get it to just match the last part LOOKUP("lookup name2",3)
?