[Devel] Re: dynamic regexps

JF jfkavaka at gmail.com
Thu Mar 2 16:15:45 CET 2006


Comments or suggestions on how this could be achieved/implemented?

Thanks,

JF

On 2/28/06, JF <jfkavaka at gmail.com> wrote:
> Hi all,
>
> Just wondering if someone else will find useful the following
> (requested) feature: supporting "dynamic" values for regexps. This
> mean for instance supporting:
>
> avp_check("$ru", "re/$avp(s:regexp1)");
> search_body("$avp(s:regexp2)");
>
> Of course, this has the overhead of having to compile the regexps
> just-in-time, at message processing time. But it can be very useful to
> dynamically configure the behaviour of the server.
>
> I guess this will involve minor changes in fixup functions and
> addition of regcomp() in case a "pseudo-variable" is present.
>
> What do people think about this?
>
> JF
>



More information about the Devel mailing list