Hi All<div><br></div><div>I am receiving a Preferred-Identity from a customer which I need to modify (strip the first character a 0) and then send it as Remote Party ID</div><div><br></div><div>Sending the RPID is no problem, my issue is stripping the character.</div>

<div><br></div><div>I have tried a few things to do this.</div><div><br></div><div>subst(&#39;/^P-Preferred-Identity:(.*)&lt;sip:(0)(.*)@.*&gt;(.*)$/P-Preferred-Identity:\1&lt;sip:\3@domain&gt;\4/ig&#39;)</div><div><br></div>

<div>This substitution works fine but when I read $pU it still has the leading 0</div><div><br></div><div>I also looked at using re.subst on $pU but can&#39;t get it to work.</div><div><br></div><div>What is the best way to achieve what I&#39;m trying to do? </div>

<div><br></div><div>Sorry for hassling you!</div><div><br></div><div>Thanks,</div><div>Brian</div><div><br></div><div><br></div><div><br></div>