I have a String that represents a condition:
weight ne 10
I would like to split this String into three parts and analysis them separately.
I used the Java split function which worked fine:
String[] parts = conditionString.split(" ");
However, the input value could possibly be something like this:
location eq "New York"
My code stopped working because of the space between New York.
I then tried Regex with this:
^(\\w)+?\\s(\\w)+?\\s([\\w\\s\"])+$"
and it did not work.
Can someone please suggest a way to deal with this?