I'm trying to build a regex to parse excel expressions, something very simple like this:
SUM(1;2;SUM(999);SUM(3;4);SUM(9))
The regex should match all the SUM functions, so I can parse them later. So far this is what I have
(SUM\(.*?\))
But it doesnt match SUM(999), only the other SUM functions. Im fairly new to regular expressions so I dont know what I'm doing wrong. Can anybody help me?
Thanks!