in reply to Re: Strange regex to test for newlines: /.*\z/
in thread Strange regex to test for newlines: /.*\z/

One more opinion for this being a bug: short discussion on #perl6
  • Comment on Re^2: Strange regex to test for newlines: /.*\z/

Replies are listed 'Best First'.
Re^3: Strange regex to test for newlines: /.*\z/
by moritz (Cardinal) on May 29, 2007 at 09:04 UTC
    In r31303 of bleadperl this bug is fixed:
    $ perl5.9.5 -E 'say "match" if "f\n" ~~ /.*\z/'
    match
    

      Just FYI: you can do links to the Archive of Perl Changes using the apc:// linktype.

      ---
      $world=~s/war/peace/g