From nathan@vocinity.com Sat Feb 11 17:19:33 2023 From: Nathan Stratton To: sr-users@lists.kamailio.org Subject: [SR-Users] Issues matching regex Date: Sat, 11 Feb 2023 12:18:36 -0500 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1210436051==" --===============1210436051== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit I am having an issue matching toll-free. I tested my regex on regex101.com, and it looks good, but it does not match my if statement. Am I doing something wrong? if (method=="INVITE") { xlog("L_INFO", "Checking Routes $rU"); if ($rU=~"^(\+?1)?(8(00|44|55|66|77|88)[2-9]\d{6})$") { xlog("L_INFO", "Tollfree call"); }; }; Logs show "