[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: two regexp related questions
On 2011-05-19 23:36, Michael Kay wrote:
On 19/05/2011 18:45, Julian Reschke wrote:Hi there, My bad. I simplified the example too much; the first segment has a (slightly) different syntax. Alternatively, first use tokenize() to split on the semicolons, and then put each token through xsl:analyze-string. See above; the separator character can occur in quoted values; I simplified too much. Personally, I find long regexes very difficult to get right, and try to split the task up into small pieces that I can understand and debug. Indeed. I'm now assembling them piece by piece from smaller sub-expressions, each of which matching a part of the grammar I'm trying to parse. Thanks for the feedback, Julian
|
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
|