Re: Minutes for XML Query/XSL WG Joint Teleconference #632 2016-02-02

> 
> ACTION A-632-03: Mike to add a clarification text and example to bug 29415
> 

Done. I have clarified the text as follows:

<p diff="chg" at="D">The opening parentheses in the regular expression, other than those that are escaped
                           (with a backslash), or are within a character group (square brackets), or are
                           marked as non-capturing (using the syntax <code>(?:xxxx)</code>
                           described below), are numbered according to the character position of the
                        opening parenthesis in left-to-right order. The subexpression enclosed by the first such opening parenthesis 
                        and its matching closing parenthesis identifies
                        captured substring 1, the subexpression enclosed by the second identifies captured substring
                        2, and so on. The substring captured by the entire
                        regular expression is treated as captured substring 0 (zero).</p>
                     
                     <p diff="chg" at="D">For example, in the regular expression <code>A(BC(?:D(EF(GH[()]))))</code>, the string matched
                        by the subexpression <code>BC(?:D(EF(GH[()])))</code> is captured substring 1, the string
                        matched by <code>EF(GH[()])</code> is captured substring 2, and the string matched by
                        <code>GH[()]</code> is subexpression 3.
                     </p>

Michael Kay
Saxonica

Received on Tuesday, 9 February 2016 15:40:47 UTC