[pcre-dev] [Bug 820] USing pcre_callout

Kezdőlap
Üzenet törlése
Szerző: Philip Hazel
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 820] USing pcre_callout
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=820




--- Comment #5 from Philip Hazel <ph10@???> 2009-03-11 12:09:15 ---
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?

Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email