I am trying to split a string that has two numbers and possibly a letter that will look similar to:
(2,3) (2,6) p (8,5) p (5,6)
I am trying:
String inputTokens = input.split([(),\\s]);
but that leaves me with with a bunch of empty strings in the tokens array. How do I stop them from appearing in the first place?
For clarification: By empty string I mean a string containing nothing, not even a space