How can we split following by "and".
field = "a > b and b = 0 and (f = 1 and g = 2)"
Doing, field.Split(" and ") will return 4 strings, where we will have brackets inside them
a > b
b = 0
(f = 1
g = 2)
I just want 3 strings, splitting by outer "and" :
a > b
b = 0
(f = 1 and g = 2)
Tried various Regex options as well, but no luck.