https://bugs.exim.org/show_bug.cgi?id=2740
Giuseppe D'Angelo <dange...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEW |RESOLVED CC| |dange...@gmail.com --- Comment #2 from Giuseppe D'Angelo <dange...@gmail.com> --- This is working precisely as documented: $ matches 1) the end of the string, or 2) before a newline at the end of the string, or 3) before any newline in multiline mode You have a 2) match followed by a 1) match. Consider \Z or \z as alternatives if you don't like this. \Z does 1) + 2) (and never 3)), while \z does only 1). -- You are receiving this mail because: You are on the CC list for the bug. -- ## List details at https://lists.exim.org/mailman/listinfo/pcre-dev