[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: java Regex call
> Generally I don't know how many matches there will be. > Wanted some way to iterate over all of them. > <xsl:analyze-string> iterates over the substrings of the source string that the regex does or does not match. regex-group(n) gives you the part of the current match that was matched by a particular sub-pattern. If the regex is known statically, then the number of sub-patterns is known statically. It doesn't make sense to iterate over these groups because you only get one for each parenthesized group in the regex. I know that's not very clear... Michael Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|