[pcre-dev] [Bug 1565] pcregrep doesn't correctly anchor star…

Página Inicial
Delete this message
Autor: Philip Hazel
Data:  
Para: pcre-dev
Assunto: [pcre-dev] [Bug 1565] pcregrep doesn't correctly anchor start of subject
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

Philip Hazel <ph10@???> changed:

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





--- Comment #2 from Philip Hazel <ph10@???> 2014-12-30 16:46:27 ---
I think this is a documentation problem. Grep programs apply patterns to files
line by line, so \A does indeed anchor to the start of a line, not to the start
of the whole file. I think all grep programs behave this way for ^, and \A is
just a variant of that.

Because you have used the -M option, the actual matching string is permitted to
extend over several lines, with (in this case) the newlines being matched by
\s. I have made a note to try to improve the documentation.


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