Hello,<br><br>   I&#39;m attempting to use the following in Kamailio: $(hdr(from){re.subst,/(.*?);(.*)/\1/}) --- however it does not match / replace, with this from header sample:<br><br>From: &lt;sip:714364XXXX@XX.XX.XX.XX;pstn-params=808282808882;cpc=unknown&gt;;tag=gK0b53f6d9<br>
<br>However if this is fully pcre compatible, then I am a bit lost as I&#39;ve checked the results in php, perl, and python produces:<br><br>From: &lt;sip:714364XXXX@XX.XX.XX.XX (expected result)<br><br>However, Kamailio does not match / replace / etc using the following: xlog(&quot;L_INFO&quot;, &quot;Test From Header Regex: $(hdr(from){re.subst,/(.*?);(.*)/\1/})&quot;);<br>
<br>Code Samples / Regex Pattern Replacements:<br><br>PHP: <a href="http://codepad.org/CUttQH1r">http://codepad.org/CUttQH1r</a><br><br>Perl: <a href="http://codepad.org/ZfAO4X5v">http://codepad.org/ZfAO4X5v</a><br><br>Python: <a href="http://codepad.org/T14SYWkZ">http://codepad.org/T14SYWkZ</a><br>
<br>Any comments / help / etc is always appreciated, look forward to hearing back from you all!<br><br>Sincerely,<br>Brandon Armstead<br>