I can't get this to work..
I have an String which I want to split on spaces. However, I do not want to split inside Strings. That is, text which is inside double or single quotes.
Example
Splitting the following string:
private String words = " Hello, today is nice " ;
..should produce the following tokens:
private
String
words
=
" Hello, today is nice "
;
What kind of regex can I use for this?