Re: [pcre-dev] 'Hard' partial matching don't work with some …

Top Page
Delete this message
Author: Philip Hazel
Date:  
To: ND
CC: pcre-dev
Subject: Re: [pcre-dev] 'Hard' partial matching don't work with some assertions
On Sat, 21 Jan 2012, ND wrote:

> Incomplete string (pcre_exec with partial 'hard' option) can not match
> 'end of string' symbol.


Yes, but remember that one of the rules for a partial match is this:

"However, at least one character in the subject must have been
inspected."

It will never give a partial match of zero characters, because you can
*always* find such a match at the end of the subject. I have expanded
the sentence about 'end of string' matches to say that at least one
character must have been inspected.

Philip

--
Philip Hazel