How can I put together a regex to split a fiql string (example below) which separates conditions with a semicolon. The problem is semi colons can also be in the string.
I am using string split but can't find the right regex. I've tried below in which in trying to get the last semi colon before the ==:
query.split("(;)[^;]*==)
But it only works for the first key value.
Example string:
Key1==value1; key2==val;ue2;key3==value3
Target is array or list : key1==value1, key2==val;ue2, key3==value3
Problem here is the semicolon in value 2 is causing a split.
Any idea?