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

Top Page
Delete this message
Author: ph10
Date:  
To: GAUTIER Herve
CC: pcre-dev@exim.org
Subject: Re: [pcre-dev] /x modifier bug when using # comments in RE ?
On Thu, 5 Jun 2014, GAUTIER Herve wrote:

> Additional information.
> The library 8.34 is compiled with following options:
> PCRE_CONFIGURE_OPTS =
> PCRE_CONFIGURE_OPTS += --prefix=$(PCRE_OBJROOT)
> PCRE_CONFIGURE_OPTS += --disable-shared
> PCRE_CONFIGURE_OPTS += --disable-cpp
> PCRE_CONFIGURE_OPTS += --enable-jit
> PCRE_CONFIGURE_OPTS += --enable-newline-is-crlf

                           ^^^^^^^^^^^^^^^^^^^^^^


This seems to be the problem. Did you actually have CRLF following "#
test" in your file?

On my Linux system your test behaves "oddly" as you demonstrate when
just NL is used as a line terminator, but if I ensure that there is a
CRLF present, there is no difference with and without "# test".

Philip

--
Philip Hazel