<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><tt>Hi Sharad,</tt></p>
    <p><tt>Your solution seems correct to me, and should be working. 
        The only possible improvement<br>
        I see, purely cosmetical:<br>
        <br>
        * match_exp: ^0[0-9]{8}$<br>
        * subst_exp: </tt><tt>^0([0-9]{8})$<br>
        * repl: 972\1</tt></p>
    <p><tt>Does your current rule not work for you, or are you just
        asking for confirmation?<br>
      </tt></p>
    <p><tt>Best regards,<br>
      </tt></p>
    <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS 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 22.01.2020 20:50, Sharad Kumar via
      Users wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:97t8OoU9wEe632VsAvX58TlPZ1zQtajfnYAZwhYNz97neZtl6kI9aX0aac6PmJV64CIYrcIAgPwkrzAHz10_q1ovaVKa8Bk0PjBaQjK5-_Q=@protonmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div>Hey guys,<br>
      </div>
      <div><br>
      </div>
      <div>I need your little help in regex, I have a regex that search
        the 9 Digits DID and append 972 as a prefix. So for example -<br>
      </div>
      <div><br>
      </div>
      <div>DID - 012345678<br>
      </div>
      <div>After regex - 9720123456789<br>
      </div>
      <div><br>
      </div>
      <div>But now I want to remove the first 0 by regex so that I
        should get the output like this - 97212345678<br>
      </div>
      <div><br>
      </div>
      <div>These are my current regex rules -<br>
      </div>
      <div>Matching Regular Expression -     ^0[0-9]{8}$<br>
      </div>
      <div>Substitution Regular Expression:   ^(0)([0-9]{8})$<br>
      </div>
      <div>Replacement Expression:            972\2<br>
      </div>
      <div><br>
      </div>
      <div>Any help or suggestions will be appreciated. <br>
      </div>
      <div>Thank you <br>
        <br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div class="protonmail_signature_block
        protonmail_signature_block-empty">
        <div class="protonmail_signature_block-user
          protonmail_signature_block-empty"><br>
        </div>
        <div class="protonmail_signature_block-proton
          protonmail_signature_block-empty"><br>
        </div>
      </div>
      <div><br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>
  </body>
</html>