Re: [pcre-dev] PCRE2 POSIX newline matching

Kezdőlap
Üzenet törlése
Szerző: ph10
Dátum:  
Címzett: Ralf Junker
CC: pcre-dev
Tárgy: Re: [pcre-dev] PCRE2 POSIX newline matching
On Thu, 3 Sep 2015, Ralf Junker wrote:

> Thanks for the explanation, but I had already understood. Maybe my question
> was not quite clear? I will try to do better.


Oh, sorry. I did wonder if I was misunderstanding you. :-)

> Put briefly: Are the results in testoutput18 as per PCRE2 SVN 362 correct? In
> particular, for this section (line 61-65):
>
> /abc.def/
>     *** Failers
> No match: POSIX code 17: match failed
>     abc\ndef
> No match: POSIX code 17: match failed

>
> I get a match instead of a failure.
>
> If the failure is the expected result, I must look at my code. If a match is
> expected, testouput18 should be corrected.


It should be a failure because \n does not match '.' by default. If you
set the dotall modifier, it should match.

Philip

--
Philip Hazel