You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Davor Cengija <da...@mail.inet.hr> on 2002/12/22 11:24:42 UTC
[Lang] StringUtils.split() with quoted strings
Is there a method in StringUtils or some other utility class which splits a
string into an array, but taking care of quoted substrings? E.g., a string
This is "a quoted substring" and some "other text"
should be split to
This
is
a quoted substring
and
some
other text
StreamTokenizer does a good job with a single quote char, but I'd like to
have multi-char word and substring separators.
If not, I might give it a try.
Cheers,
Davor
--
davor.cengija@mail.inet.hr