<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    you have to replace [^0-9] with empty, using the global flag.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 02/07/14 23:11, Henry Fernandes
      wrote:<br>
    </div>
    <blockquote cite="mid:CFD9D199.9EB1%25henry@usinternet.com"
      type="cite">
      <div>I'd like to use the dialplan module to remove all non-digits
        from a string.  For example, "1-306-555-1234" becomes
        "13065551234" and "(306) 555-1234" becomes "3065551234".</div>
      <div><br>
      </div>
      <div>Unfortunately, I can't figure out the regular expressions for
        subst_exp and repl_exp.  I can easily replace one instance of a
        non-digit, however I can't figure out how to replace all
        non-digits.</div>
      <div><br>
      </div>
      <div>-H</div>
      <br>
      <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://www.asipto.com">http://www.asipto.com</a>
<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></pre>
  </body>
</html>