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

Etusivu
Poista viesti
Lähettäjä: Nicolas Sitbon
Päiväys:  
Vastaanottaja: pcre-dev
Aihe: [pcre-dev] [Bug 1565] New: 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
           Summary: pcregrep doesn't correctly anchor start of subject
           Product: PCRE
           Version: 8.36
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: nicolas.sitbon@???
                CC: pcre-dev@???



Hi, I have an unexpected behaviour with pcregrep at least from version 8.30
until the last one: \A doesn't only anchor to the start of the subject but also
at the start of a line.
here is the command line and output:
pcregrep -nM --buffer-size=4M '\A\s++<\?' test.php
1: <?php
7:

<?php

whereas it should only return
1: <?php

Thanks guys


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