commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davor Cengija <davor.ceng...@mail.inet.hr>
Subject [Lang] StringUtils.split() with quoted strings
Date Sun, 22 Dec 2002 10:24:42 GMT
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



Mime
View raw message