<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <div class="moz-cite-prefix">On 29.07.2020 15:44, Barnaby Ritchley
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:LOYP123MB30219739F577155AFACEA680BD700@LOYP123MB3021.GBRP123.PROD.OUTLOOK.COM">
      <div style="margin: 0cm; font-size: 12pt; font-family: Calibri,
        sans-serif;" class=""><span style="font-size: 11pt; font-family:
          Arial, sans-serif;" class="">With </span><span
          style="font-size: 11pt; font-family: "Courier New";"
          class="">$rU</span><span style="font-size: 11pt; font-family:
          Arial, sans-serif;" class=""> of </span><span
          style="font-size: 11pt; font-family: "Courier New";"
          class="">12345441234567890</span><span style="font-size: 11pt;
          font-family: Arial, sans-serif;" class=""> we would expect </span><span
          style="font-size: 11pt; font-family: "Courier New";"
          class="">$var(to_user)</span><span style="font-size: 11pt;
          font-family: Arial, sans-serif;" class=""> to be 441234567890
          (stripping off the first 5 digits) however </span><span
          style="font-family: "Courier New"; font-size:
          14.666666984558105px;" class="">$var(to_user)</span><span
          style="font-size: 11pt; font-family: Arial, sans-serif;"
          class=""> returns <o:p class=""></o:p></span><span
          style="font-family: "Courier New"; font-size:
          14.666666984558105px;" class="">12345441234567890</span></div>
      <div style="margin: 0cm; font-size: 12pt; font-family: Calibri,
        sans-serif;" class=""><span style="font-size: 11pt; font-family:
          Arial, sans-serif;" class=""> </span></div>
      <div style="margin: 0cm; font-size: 12pt; font-family: Calibri,
        sans-serif;" class=""><span style="font-size: 11pt; font-family:
          Arial, sans-serif;" class="">What am I doing wrong?</span></div>
      <div style="margin: 0cm; font-size: 12pt; font-family: Calibri,
        sans-serif;" class=""><span style="font-size: 11pt; font-family:
          Arial, sans-serif;" class=""><br class="">
        </span></div>
    </blockquote>
    <p><tt>Hey Barnaby,</tt></p>
    <p><tt>I would guess that the PCRE library does not support the "\d"
        literal, which also seems to be confirmed by this site [1].  The
        "/\+?[0-9]{5}([1-9][0-9]+)/\1/g" regexp should remove your tech
        prefix as expected.</tt></p>
    <p><tt>BR,<br>
      </tt></p>
    <p><tt>[1]: </tt><tt><a
          href="https://www.regular-expressions.info/shorthand.html">https://www.regular-expressions.info/shorthand.html</a></tt></p>
    <pre class="moz-signature" cols="72">-- 
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a>

OpenSIPS Summit 2020 Distributed
  <a class="moz-txt-link-abbreviated" href="http://www.opensips.org/events/Summit-2020Distributed">www.opensips.org/events/Summit-2020Distributed</a></pre>
  </body>
</html>