<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    iirc, there is a transformation for regexp replacing, but not sure
    it does again for all recurences or accepts the typical subst flags.<br>
    <br>
    Other solutions:<br>
    <br>
     - avp_subst()<br>
     - subst_user() (backup r-uri username in a var, set username to the
    value you want to change, do the subst, then get the new value in
    your variable and restore the r-uri username)<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 10/12/15 18:49, Jonathan Hunter
      wrote:<br>
    </div>
    <blockquote cite="mid:DUB112-W794E097EB1E436C7BC4AC5BDE90@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr">Hi Guys,
        <div><br>
        </div>
        <div>I have been using   {s.rm,match} to remove occurrences of
          numbers, however I am aware it removes all occurrences.</div>
        <div><br>
        </div>
        <div>Is it possible to make it only remove the first occurrence
          and not all? </div>
        <div><br>
        </div>
        <div>For example If I am looking to modify 639157407639</div>
        <div><br>
        </div>
        <div>I want to remove only the first 63, not both.</div>
        <div><br>
        </div>
        <div>So I end up with <span style="font-size: 12pt;">9157407639
            and not </span><span style="font-size: 12pt;">91574079.</span></div>
        <div><span style="font-size: 12pt;"><br>
          </span></div>
        <div><span style="font-size: 12pt;">Is it possible with a
            transformation of is regex  the way ?</span></div>
        <div><span style="font-size: 12pt;"><br>
          </span></div>
        <div><span style="font-size: 12pt;">thanks</span></div>
        <div><span style="font-size: 12pt;"><br>
          </span></div>
        <div><span style="font-size: 12pt;">Jon</span></div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://miconda.eu">http://miconda.eu</a></pre>
  </body>
</html>