[OpenSER-Users] variables in regexp

Yazid Hadj Said yazid.hadjsaid at gmail.com
Fri May 30 14:01:49 CEST 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20080530/9cacb0d0/attachment.htm>


More information about the sr-users mailing list