<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi,</tt><tt><br>
    </tt><tt><br>
    </tt><tt>The easiest way is by using a regexp substitution (se</tt><tt>e
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-Tran-2-2#toc81">http://www.opensips.org/Documentation/Script-Tran-2-2#toc81</a>) :</tt><tt><br>
    </tt><tt>    </tt><tt><br>
    </tt><tt>$var(input)="123-45-67";</tt><tt><br>
    </tt><tt>$var(output) = $(var(input){re.subst,"/-//g"});</tt><tt><br>
    </tt><tt><br>
    </tt><tt>Regards,</tt><br>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 30.09.2016 13:00, Denis wrote:<br>
    </div>
    <blockquote cite="mid:1347593687.20160930130027@ptl.ru" type="cite">
      <title>string modification</title>
      <span style=" font-family:'Times New Roman'; font-size: 12pt;">Hello!<br>
        <br>
        I am sorry that it was early, but my question is, how can i
        delete some character from some string if i do not know where
        this character will be inside the string?<br>
        <br>
        For example, input string 123-45-67, or 12-345-67, but output
        string should be 1234567.<br>
        <br>
        Thank you.<br>
        <br>
        <br>
      </span><a moz-do-not-send="true" style=" font-family:'arial';
        font-size: 10pt;" href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>