RE: MS-FO-LC1-047: 7.5.2 fn:matches

We do not have an "s" modifier. Our "m" modifier means the same as Perl's
"m" modifier, and our multi-line mode is the same as Perl's multi-line mode.

Michael Kay

> -----Original Message-----
> From: Liam Quin [mailto:liam@w3.org] 
> Sent: 02 July 2003 16:10
> To: public-qt-comments@w3.org
> Subject: Re: MS-FO-LC1-047: 7.5.2 fn:matches
> 
> 
> 
> For clarification, here is an extract from the Perl 
> documentation (running the command, perldoc perlretut, will 
> display it)
> 
> ======================
> *  no modifiers (//): Default behavior.  '.' matches any character
>    except "\n".  "^" matches only at the beginning of the string and
>    "$" matches only at the end or before a newline at the end.
> 									
> *  s modifier (//s): Treat string as a single long line.  '.' matches
>    any character, even "\n".  "^" matches only at the beginning of the
>    string and "$" matches only at the end or before a newline at the
>    end.
> 									
> *  m modifier (//m): Treat string as a set of multiple lines.  '.'
>    matches any character except "\n".  "^" and "$" are able to match
>    at the start or end of any line within the string.
> 									
> *  both s and m modifiers (//sm): Treat string as a single long line,
>    but detect multiple lines.  '.' matches any character, even "\n".
>    "^" and "$", however, are able to match at the start or end of any
>    line within the string.
> ======================
> 
> So, by default, . does *not* match \n in Perl.
> 
> Liam
> 
> 
> -- 
> Liam Quin, W3C XML Activity Lead, liam@w3.org, 
> http://www.w3.org/People/Quin/
> 

Received on Wednesday, 2 July 2003 17:19:01 UTC