[pcre-dev] [Bug 1315] \r, \n and $ matching seems to be ill…

Top Page
Delete this message
Author: Philip Hazel
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 1315] \r, \n and $ matching seems to be illogical or not fully documented.
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1315

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID





--- Comment #2 from Philip Hazel <ph10@???> 2012-11-07 17:32:44 ---
I have added the following sentence to the section entitled "Circumflex and
dollar" in the pcrepattern.3 man page:

The circumflex and dollar metacharacters are zero-width assertions. That is,  
they test for a particular condition being true without consuming any        
characters from the subject string.   


I have also added a note in the paragraph describing dollar as a reminder that
it does not consume characters from the input.

The "Newline conventions" section describes different options for recognizing
newlines, which of course affects where $ is true. I have added a sentence to
that effect.

In the section on character classes it already says "A class that starts with a
circumflex is not an assertion; it still consumes a character from the subject
string, and therefore it fails if the current pointer is at the end of the
string."


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email