I am taking a
string input from the command line using a buffered reader and storing in a string.
This specific string is in the form USE <item> ON <item> where an item can be one or more words.
I am trying to store these two specified items in two separate strings, I have had trouble with both the string tokenizer and the .split() method.
When using the string tokenizer my loop gets far to confusing and ends up not working at all.
Where as with .split() I am having trouble coming up with the correct reg-ex to split it up as I want.
currently for the regular expression i am trying to use "\b[Oo][Nn]\b" to split around the ON or any upper/lower case variation.
However when I print out the array that is returned it just returns the string in its original form.
Any help would be greatly appreciated, thanks in advance.