[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: tokenizing comma separated string with quotes
On 2/21/07, Houghton,Andrew <houghtoa@xxxxxxxx> wrote:
> From: Andrew Welch [mailto:andrew.j.welch@xxxxxxxxx] > Sent: 21 February, 2007 14:07 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: tokenizing comma separated string with quotes > > Given the input > > <elem>"foo, bar", baz, bom</elem> > > Is there a nice one liner / technique to return the three > tokens "foo, bar" "baz" "bom" > > eg: > > <root> > <token>foo, bar</token> > <token>baz</token> > <token>bom</token> > </root> > > I can't see the answer for all the apparent quote escaping required... Thanks Andrew - is there a modification to the regex to not include the surrounding quotes? eg <token>"foo, bar"</token> should be <token>foo, bar</token> I can translate away the quotes, but it would be nice if the regex could be modified to do the same thing.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|