--- In [email protected], Julien Pierrehumbert <[EMAIL PROTECTED]> 
wrote:
>
> Sheri wrote:
> >  I'm struggling to understand what you're saying.
> > There were two empty lines in the input string. Surely
> > the last "Hello" in the replacement is there because it
> > matched the last one?

> I'm talking about the implicit empty line after the
> last CRLF, at the very end of the string: one could
> argue ...\r\nHello is the expected result.

That is apparently by design. The ChangeLog (v 6.7) includes the
following:
"In multiline (/m) mode, PCRE was matching ^ after a terminating
newline at the end of the subject string, contrary to the
documentation and to what Perl does. This was true of both matching
functions. Now it matches only at the start of the subject and
immediately after *internal* newlines."

Regards,
Sheri


Reply via email to