Well JS claimed from the very beginning on to re-implement the Perl4 regex features.
So if anything, then it's JS which is buggy.
Furthermore, since when does JS support the /s flag? I can see that it works in FF now, but I can't find it documented in MDN !?!
Not long ago JS required a "weird" character class like [^] to also match newlines, alike . with /s flag in Perl.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^5: Non-greedy match end of line bug?
by LanX
in thread Non-greedy match end of line bug?
by am12345
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |