<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <tt>Hello Miha,<br>
      <br>
      According to
      <a 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 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 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>
  </body>
</html>