On Wed, 20 Sep 2000 10:03:08 +0100, Hugo wrote:
>In <12839.969393548@chthon>, Tom Christiansen writes:
>:What can be done to make $ work "better", so we don't have to
>:make people use /foo\z/ to mean /foo$/? They'll keep writing
>:the $ for things that probably oughtn't abide optional newlines.
Gee you just beat me to this one.
My first thought was: add a new modifier.
>It might be reasonable to redefine $ to mean the same as \z whenever
>the /s flag is supplied.
That was my second thought. I kinda like it, because //s would have two
effects:
+ let . match a newline too (current)
+ let /$/ NOT accept a trailing newline (new)
This combines into:
= treat "\n" as an ordinary character
That's why I like it.
--
Bart.