xsl-list
[Top] [All Lists]

Re: [xsl] tokenizing comma separated string with quotes

2007-02-22 06:27:17

Thanks David, I'll take it from that there's no straightforward
modification to the regex...

one man's straight forward is another's crooked I suspect...
other things that come to mind are

\s*"?([^"]*"?|[^,]+)\s*

then you can just use group 1 as before,

depends a bit on whether you want to tolerate dubious input, that last
one will behave diferently to  mis-matched " for example.


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--