W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2004

[whatwg] Web Forms 2.0 Substantial - Section 2

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 24 Jun 2004 13:12:03 +0000 (UTC)
Message-ID: <Pine.LNX.4.58.0406241257280.27151@dhalsim.dreamhost.com>
On Wed, 23 Jun 2004, Hallvord Reiar Michaelsen Steen wrote:
>
> But the spec already says
> "The pattern must be compiled with the multiline flag enabled (see
> ECMA262, section 15.10.7.4)."
>
> This means that periods DO match newlines.
>
> javascript:alert(/^.*$/m.test('multiple \n\n lines \n\n here'))

Ok now I'm really confused. It's like ".*" sometimes matches newlines and
sometimes doesn't. Am I missing something obvious here?:

   http://www.hixie.ch/tests/adhoc/js/regexp/001.html

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 24 June 2004 06:12:03 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:34 UTC