|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] a sequence of regex-group()
Hi all,
sanity check
If I wanted a sequence of all the regex-group() values available in a matching-substring...
(This is inside a function and the actual regex $re is passed in as a param, so number of item() is unknown)
I expected this to be somewhat more straightforward than this, so I check
<xsl:variable name="group-count" select="string-length(replace($re, '[^\(]+', ''))"/>
<xsl:analyze-string select="$str" regex="{$re}">
<xsl:matching-substring>
<xsl:variable name="re-groups" select="for $i in 1 to $group-count return regex-group($i)" as="item()*"/>
Any thoughts?
Thanks a lot
Geert
|
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
|

Cart








