SyntaxFix
Write A Post
Hire A Developer
Questions
what about a one-liner using String.split()?
String s = "foo,bar,c;qual=\"baz,blurb\",d;junk=\"quux,syzygy\""; String[] split = s.split( "(?<!\".{0,255}[^\"]),|,(?![^\"].*\")" );