Autor: ph10 Datum: To: pcre-dev@exim.org Betreff: Re: [pcre-dev] /x modifier bug when using # comments in RE ?
On Fri, 6 Jun 2014, ph10@??? wrote:
> On Fri, 6 Jun 2014, GAUTIER Herve wrote:
>
> > But, my remaining problem is that if I have compiled PCRE with
> > --enable-newline-is-crlf on a system (Linux) which has LF as newline,
> > when using pcretest, how can I enter the newline sequence CR LF when
> > entering my RE ?
>
> CTRL-M, Return (maybe?)
I was interrupted before I could try that ... it doesn't, of course,
work since Linux turns CTRL-M (= return) into LF. I wondered afterwards
whether a better approach for you might be to leave PCRE configured at
its default (newline == LF) and make your application that processes
CRLF-terminated files set the appropriate PCRE option
(PCRE_NEWLINE_CRLF) when calling pcre_compile(). Would that work for
you?