[pcre-dev] [Bug 2740] Using Multiline=Off and text ending on…

Page principale
Supprimer ce message
Auteur: admin
Date:  
À: pcre-dev
Anciens-sujets: [pcre-dev] [Bug 2740] New: Using Multilin=Off and text ending on EOL, matches EOF twice
Sujet: [pcre-dev] [Bug 2740] Using Multiline=Off and text ending on EOL with pattern "$", I get 2 EOF matches instead of 1
https://bugs.exim.org/show_bug.cgi?id=2740

Giuseppe D'Angelo <dangelog@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED
                 CC|                            |dangelog@???


--- Comment #2 from Giuseppe D'Angelo <dangelog@???> ---
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.