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

Góra strony
Delete this message
Autor: GAUTIER Herve
Data:  
Dla: pcre-dev@exim.org
Temat: [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é