[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: java Regex call

Subject: RE: java Regex call
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 10 Jul 2003 16:17:51 +0100
java regex sub
> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.