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

On Wed, Jul 02, 2003 at 10:05:20AM +0100, Jeni Tennison wrote:
> The first example:
>   fn:matches(., "Kaum.*krähen")
> is in string mode, so the metacharacter . matches any character
> whatsoever, including newline (Hx0A) characters.
[...]

> The second example:
> 
>   fn:matches(., "Kaum.*krähen", 'm')
> 
> is in multiline mode, so the metacharacter . matches any character
> aside from newline (Hx0A) characters.

This seems to be exactly the opposite of the "m" modifier in Perl 5.
Is there a reason for this incompatibility?  It's very confusing.

If there's a de facto standard for modifying regexp's for multiline
matches, it's surely Perl.

Liam

-- 
Liam Quin, W3C XML Activity Lead, liam@w3.org, http://www.w3.org/People/Quin/

Received on Wednesday, 2 July 2003 11:02:49 UTC