This is giving me a hard time. I have an expression like this:
isnull(Num([abc]), [a], [b]) + sum([d])
I am trying to get everything that is enclosed within square brackets which is inside the isnull(). So from the above example, I should get [abc], [a] and [b] but not [d].
I have come up with this - isnull\((?:\[)(.*?)(?:\]) which gives me only [abc] but not [a] and [b].
What can I change in my regex pattern so that I get the correct matches? I am using VS2019 and C# if it matters.