I need help making a regex patern to split strings with
the delimiter as a backslash; and I need it to ignore any backslashes inside parentheses "(" & ")"
example
string = "red \ (blue) \ (green\blue)\ black"
split should be
0=red
1=(blue)
2=(green\blue)
3=black
also there is no uniformity to the spaces abound the slashes
thanks,
-x6213
the delimiter as a backslash; and I need it to ignore any backslashes inside parentheses "(" & ")"
example
string = "red \ (blue) \ (green\blue)\ black"
split should be
0=red
1=(blue)
2=(green\blue)
3=black
also there is no uniformity to the spaces abound the slashes
thanks,
-x6213