[SR-Users] subst_hf with capture groups

Igor Potjevlesch igor.potjevlesch at gmail.com
Mon Apr 27 16:01:14 CEST 2015


Hello,

 

I can't figure out how to handle this case:

subst_hf("P-Asserted-Identity", "/(.*\")0(.*)(.*\")/\133\2\3/", "a");

 

I'd like to substitute with \1 followed with 33 but it looks like the
substitution tries to be done with \133. The capture group \133 doesn't
exist.

 

I tried with the following syntax: /${1}33 but ${1} is interpreted as a
string.

 

Someone can help me? Thank you.

Regards,

 

Igor.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150427/0087475c/attachment.html>


More information about the sr-users mailing list