Szerző: Vicente Ferrari Dátum: Címzett: pcre-dev Tárgy: [pcre-dev] Question about .*
Hello, sorry to bother with a basic question.
I'm wondering about the expected result when matching ".*" against a string
with new lines.
I compiled PCRE2 with the ANYCRLF option, expecting that the pcre2demo.c
program would
basically completely ignore those newlines. Instead, I get matches of
length 0 at the index of the
\r, no matches where \n is and then the next correct match starts at the
correct offset, taking into account the length 2 of the newlines.
I was expecting newlines to produce no matches at all, am I doing something
wrong?