xsl-list
[Top] [All Lists]

Re: [xsl] Regex groups / was: Re: [xsl] Move leading/trailing spaces outside (XSLT 2.0)

2007-02-07 02:21:08
--On Tuesday, February 06, 2007 17:54:49 +0100 Abel Braaksma wrote:

I.e., text is: "this is a text"
regex: (t(.+)(.*))

will put the 't' in regex-group(1), the 'his is a text' in regex-group(2)
and nothing in regex-group(3)

regex-group(1) will be 'this is a text' in this example, and will be the same as the whole match. When groups are nested, the outer group match results include the inner group match results.

--
Owen Rees
Hewlett Packard Laboratories, Bristol, UK


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--