<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hmm, I see there is none inside dialplan for the moment.<br>
    <br>
    The option would be to do it in config file with a function from
    textops.<br>
    <br>
    Also, check if regex module is a good alternative for you:<br>
    - <a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules/regex.html">http://kamailio.org/docs/modules/stable/modules/regex.html</a><br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 16/07/14 16:50, Henry Fernandes
      wrote:<br>
    </div>
    <blockquote cite="mid:CFEBED4E.B86B%25henry@usinternet.com"
      type="cite">
      <div>Can anyone show me how to use the regexp global flag using
        dp_translate?</div>
      <div>-H</div>
      <div><br>
      </div>
      <span id="OLK_SRC_BODY_SECTION">
        <div style="font-family:Calibri; font-size:11pt;
          text-align:left; color:black; BORDER-BOTTOM: medium none;
          BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT:
          0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;
          BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span
            style="font-weight:bold">From: </span> Henry Fernandes <<a
            moz-do-not-send="true" href="mailto:henry@usinternet.com">henry@usinternet.com</a>><br>
          <span style="font-weight:bold">Reply-To: </span> "Kamailio
          (SER) - Users Mailing List" <<a moz-do-not-send="true"
            href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
          <span style="font-weight:bold">Date: </span> Friday, 11 July,
          2014 4:18 PM<br>
          <span style="font-weight:bold">To: </span> <<a
            moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>>,
          "Kamailio (SER) - Users Mailing List" <<a
            moz-do-not-send="true"
            href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
          <span style="font-weight:bold">Subject: </span> Re:
          [SR-Users] how to remove non-digits using dp_translate<br>
        </div>
        <div><br>
        </div>
        <div>
          <div style="word-wrap: break-word; -webkit-nbsp-mode: space;
            -webkit-line-break: after-white-space; color: rgb(0, 0, 0);
            font-size: 14px; font-family: Calibri, sans-serif; ">
            <div>I don't know how to apply the global flag in Kamailio.
               Can you give me an example?</div>
            <div>-H</div>
            <div><br>
            </div>
            <span id="OLK_SRC_BODY_SECTION">
              <div style="font-family:Calibri; font-size:11pt;
                text-align:left; color:black; BORDER-BOTTOM: medium
                none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in;
                PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP:
                #b5c4df 1pt solid; BORDER-RIGHT: medium none;
                PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span>
                Daniel-Constantin Mierla <<a moz-do-not-send="true"
                  href="mailto:miconda@gmail.com">miconda@gmail.com</a>><br>
                <span style="font-weight:bold">Reply-To: </span> <<a
                  moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>>,
                "Kamailio (SER) - Users Mailing List" <<a
                  moz-do-not-send="true"
                  href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
                <span style="font-weight:bold">Date: </span> Thursday,
                3 July, 2014 1:47 AM<br>
                <span style="font-weight:bold">To: </span> "Kamailio
                (SER) - Users Mailing List" <<a
                  moz-do-not-send="true"
                  href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
                <span style="font-weight:bold">Subject: </span> Re:
                [SR-Users] how to remove non-digits using dp_translate<br>
              </div>
              <div><br>
              </div>
              <div>
                <meta content="text/html; charset=windows-1252"
                  http-equiv="Content-Type">
                <div 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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a><a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
                </div>
              </div>
              _______________________________________________
              SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
              mailing list
              <a moz-do-not-send="true"
                href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><a
                moz-do-not-send="true"
                href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></span></div>
        </div>
        _______________________________________________
        SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
        mailing list
        <a moz-do-not-send="true"
          href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
        <a moz-do-not-send="true"
          href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
      </span>
    </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>