[whatwg] Web Forms 2.0 Substantial - Section 2
Ian Hickson
ian at hixie.ch
Thu Jun 24 06:12:03 PDT 2004
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. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list