<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Bogdan,<br>
      <br>
      tnx for help!<br>
      <br>
      miha<br>
      <br>
      Dne 5/15/2013 10:58 AM, pi&#353;e Bogdan-Andrei Iancu:<br>
    </div>
    <blockquote cite="mid:51934E2C.9020008@opensips.org" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <tt>Hello Miha,<br>
        <br>
        According to <a moz-do-not-send="true"
          class="moz-txt-link-freetext"
href="http://www.opensips.org/html/docs/modules/1.9.x/dialplan.html#id249053">http://www.opensips.org/html/docs/modules/1.9.x/dialplan.html#id249053</a>
        , try :<br>
        <br>
        &nbsp;match_op = 1 (regexp)<br>
        <br>
        &nbsp;match_exp = "^0[1-7][0-9]{7}</tt><tt>$" <br>
        <br>
        &nbsp;subst_exp = "^0(.+)$" ; regular expresion used to do the
        transformation (first part of the subst operation)<br>
        <br>
        &nbsp;repl_exp = "386\1" ; second part of the subst (output) - linked
        to the subst_exp field; when both defined, they work as a
        subst()<br>
        <br>
        Regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      <br>
      On 05/13/2013 03:15 PM, Miha wrote:
      <blockquote cite="mid:5190D95B.6080205@softnet.si" type="cite">
        <meta http-equiv="content-type" content="text/html;
          charset=ISO-8859-1">
        Hi,<br>
        <br>
        I need a little help regarding <span class="emphasis"><em>subst_exp


            and repl_xmp.<br>
            <br>
          </em></span>I am trying to catch 014564561 which I do with
        match_exp(^0[1-7][0-9]{7}). Than I have problem as I would like
        to substitute 0 with 386. So If I get 014564561 I would like to
        get 38614564561.<br>
        <br>
        Can anyone can give me a quick info how to do that:)<br>
        <br>
        Thanks!<br>
        Miha<br>
        <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
    </blockquote>
    <br>
  </body>
</html>