I need to parse out writeln("test");
from a string.
I was using (?<type>writeln)\((?<args>[^\)]*)\);
as the regex, but this isn't perfect, if you try and parse writeln("heloo :)");
or something similar, the regex won't parse it (because of the ')' in the quotes). Is there a way to register that since the ')' is in the quote marks, the regex should ignore it, and look for the next ')'?
Thanks,
Max