<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Liviu,<div class=""><br class=""></div><div class="">Thats perfect - didn’t even think of that! [0-9] instead of \d works great.</div><div class=""><br class=""></div><div class="">Thanks again!</div><div class=""><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On 29 Jul 2020, at 14:14, Liviu Chircu <<a href="mailto:liviu@opensips.org" class="">liviu@opensips.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><p style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><tt class="">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 style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><tt class="">BR,<br class=""></tt></p><p style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><tt class="">[1]:<span class="Apple-converted-space"> </span></tt><tt class=""><a href="https://www.regular-expressions.info/shorthand.html" class="">https://www.regular-expressions.info/shorthand.html</a></tt></p><br class="Apple-interchange-newline"></div></blockquote></div><br class=""></body></html>