Autor: Philip Hazel Data: Para: 820 CC: pcre-dev Asunto: Re: [pcre-dev] [Bug 820] USing pcre_callout
On Tue, 10 Mar 2009, Jing Lan wrote:
> The problem I am reporting is that through my definition
> (tell(?C1)) $0=ENTITY:callout:ADV/ADV
>
> the pattern found, corresponding to "$0", should be "tellcall" or "tellCALL",
> not "tell" itself.
Why? I think you have misunderstood something, but I am not sure what.
The pattern "(tell(?C1))" matches just "tell". Why do you think it
should match "tellcall"?
> Since the callout part is also within the scope of $0, I
> suppose the output is
> <..>tellcall<...>
I do not understand anything about "$0=ENTITY:callout:ADV/ADV" because
that is not part of PCRE.
The (?C1) part of the pattern passes control to your callout function,
with information about what it has matched in the pattern. However, all
that the function can do is either say "carry on" (return code 0) or
"stop". Are you perhaps expecting something else?