I have the following string. I have broken it into two lines below for clarity but they are one line.
WHEN NVL(somevar1, 0) > 0 THEN
(CAST(NVL(somevar2, 0) AS
FLOAT(53)) / CAST(NVL(somevar3, 0) AS FLOAT(53))) * 100
I want to write a Regex so that I can get somevar1, somevar2 and somevar3.
I was trying with something like this:
NVL(.*,)
But this matches the last comma instead of the first comma.
BTW, I am doing this in groovy.