Re: [pcre-dev] Proceed from saved state

Inizio della pagina
Delete this message
Autore: Philip Hazel
Data:  
To: NN
CC: pcre-dev
Oggetto: Re: [pcre-dev] Proceed from saved state
On Fri, 12 Dec 2008, NN wrote:

> Is there possibility to continue after first match occured?


Only by calling pcre_exec() again, starting a new match with the rest of
the string.

> I get the match. Later i want to proceed from this point as if this
> match was failed. Can i do this? Sorry, but i dont find answer in
> documentation.


No, you can't do this directly. The only thing you can do is to put a
callout at the end of the pattern, save the data in the callout, and
return a value that causes a failure. But this is complicated.

Philip

--
Philip Hazel