[OpenSER-Users] variables in regexp

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri May 30 14:20:55 CEST 2008


Hi Yazid,

avp_subst() does not accept dynamic strings in the RE part....

Regards,
Bogdan

Yazid Hadj Said wrote:
> Hi,
> please I want to know: If and How I can use variables in "regexp" .
> example:
> avp_subst("avp(s:var1)/$avp(s:var2)","/(.*)$avp(s:var3)(.*)/\1/")
> In this example, simply the "$avp(s:var3)" string is matched, not the 
> $avp(s:var3)'s content.
>
> I am very need this function.
>
> Thanks in advance,
> Yazid
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>   





More information about the sr-users mailing list