<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div>
<div dir="ltr">Unsubscribe </div>
</div>
<div id="ms-outlook-mobile-signature">
<div><br>
</div>
Get <a href="https://aka.ms/o0ukef">Outlook for iOS</a></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Users <users-bounces@lists.opensips.org> on behalf of users-request@lists.opensips.org <users-request@lists.opensips.org><br>
<b>Sent:</b> Tuesday, January 2, 2024 2:00:01 PM<br>
<b>To:</b> users@lists.opensips.org <users@lists.opensips.org><br>
<b>Subject:</b> Users Digest, Vol 186, Issue 1</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.<br>
<br>
<br>
Send Users mailing list submissions to<br>
        users@lists.opensips.org<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fusers&data=05%7C02%7Cregardt%40rain.co.za%7Ce223cfc6eba34f93127008dc0b8a6e95%7C5b67f9a1ea53476ba4ed075b7bab99f8%7C0%7C0%7C638397936424461632%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C7000%7C%7C%7C&sdata=ryaCNX5um0S8iT3lPhJIgI2ORiRNfrCbqwmhvGOhoRw%3D&reserved=0</a><br>
or, via email, send a message with subject or body 'help' to<br>
        users-request@lists.opensips.org<br>
<br>
You can reach the person managing the list at<br>
        users-owner@lists.opensips.org<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. regular expression matching question (Faheem Muhammad)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 2 Jan 2024 15:24:45 +0400<br>
From: Faheem Muhammad <faheem2084@gmail.com><br>
To: OpenSIPS users mailling list <users@lists.opensips.org><br>
Subject: [OpenSIPS-Users] regular expression matching question<br>
Message-ID:<br>
        <CA++nn_yyAC1h2vGzaV-L0OTgKywVGb5RC8P7Lob83wUnuXp5fA@mail.gmail.com><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi everyone,<br>
<br>
Firstly, I wish you all a Happy New Year with the best wishes for each<br>
community member and the OpenSIPS project.<br>
<br>
I have a question related to regular expressions matching in an IF<br>
condition.<br>
There are two identical regular expressions. One RE is matching and one RE<br>
is not matching the pattern.<br>
<br>
*Sample $fU Range:  *+966123456700 to +96612345650<br>
<br>
# RE1 - Matching Regular expression<br>
if($fU =~"\+9661234567[0-4][0-9]|\+966123456750"){<br>
xlog("re matched\n")<br>
}<br>
<br>
# RE2  - Non matching Regular expression<br>
if($fU ~="\+9661234567([0-4]\d|50)"){<br>
} # RE not matched<br>
<br>
Can anyone please suggest what I'm doing wrong?<br>
<br>
*OpenSIPS version*:     3.2.3<br>
OS: *Debian 12*<br>
<br>
<br>
Best regards,<br>
M. Faheem<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opensips.org/pipermail/users/attachments/20240102/250194a1/attachment-0001.html">https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fpipermail%2Fusers%2Fattachments%2F20240102%2F250194a1%2Fattachment-0001.html&data=05%7C02%7Cregardt%40rain.co.za%7Ce223cfc6eba34f93127008dc0b8a6e95%7C5b67f9a1ea53476ba4ed075b7bab99f8%7C0%7C0%7C638397936424461632%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C7000%7C%7C%7C&sdata=rJC9bSAjdc2akg2XrZJU1Wo%2Bu6xBSUVdHaE5EuP%2BWv8%3D&reserved=0</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Users mailing list<br>
Users@lists.opensips.org<br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fusers&data=05%7C02%7Cregardt%40rain.co.za%7Ce223cfc6eba34f93127008dc0b8a6e95%7C5b67f9a1ea53476ba4ed075b7bab99f8%7C0%7C0%7C638397936424461632%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C7000%7C%7C%7C&sdata=ryaCNX5um0S8iT3lPhJIgI2ORiRNfrCbqwmhvGOhoRw%3D&reserved=0</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Users Digest, Vol 186, Issue 1<br>
*************************************<br>
</div>
</span></font></div>
</body>
</html>