[pcre-dev] /x modifier bug when using # comments in RE ?

Αρχική Σελίδα
Delete this message
Συντάκτης: GAUTIER Herve
Ημερομηνία:  
Προς: pcre-dev@exim.org
Αντικείμενο: [pcre-dev] /x modifier bug when using # comments in RE ?

Hello world !

I seems I have detected a strange behaviour when using the /x modifier
with # comments in the RE

$CTUOBJ/pcre/bin/pcretest
PCRE version 8.34 2013-12-15

   re> /^
     >             [+-]?
     >             (
     >                     \d+\.\d+
     >                   |\d+\.
     >                   |\.\d+
     >             )
     >             ([eE][+-]?\d+)?
     >       [\r]*$/xm

data> START\r\n1.2E3\r\nEND

  0: 1.2E3
  1: 1.2
  2: E3
data>
   re> /^
     >              [+-]? # test
     >              (
     >                      \d+\.\d+
     >                    |\d+\.
     >                    |\.\d+
     >              )
     >              ([eE][+-]?\d+)?
     >        [\r]*$/xm

data> START\r\n1.2E3\r\nEND

0:
data>


Someone can confirm me the problem ?

--
Hervé