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

Re: Regex groups / was: Re: Move leading/trailin

Subject: Re: Regex groups / was: Re: Move leading/trailing spaces outside (XSLT 2.0)
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 06 Feb 2007 17:57:42 +0100
Re:  Regex groups / was: Re:  Move leading/trailin
Yves Forkl wrote:

Though familiar with RegExp functions in various languages, I am not sure how this one works, so I wonder what happens when the condition of the first regex group cannot be satisfied. Supposing that the second matches, will I then have to refer to it as regex-group(1) or still as regex-group(2)? I.e., do the numbers index the groups defined in the regex or the substrings that actually matched one of the groups?

The group-number argument refers to the number of subexpressions in parentheses. If the subexpression does not match anything then regex-group(index) returns the empty string
<http://www.w3.org/TR/xslt20/#function-regex-group>


--

	Martin Honnen
	http://JavaScript.FAQTs.com/

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-2011 All Rights Reserved.