[OpenSIPS-Users] Users Digest, Vol 186, Issue 1

Regardt van de Vyver regardt at rain.co.za
Tue Jan 2 13:27:00 UTC 2024


Unsubscribe

Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: Users <users-bounces at lists.opensips.org> on behalf of users-request at lists.opensips.org <users-request at lists.opensips.org>
Sent: Tuesday, January 2, 2024 2:00:01 PM
To: users at lists.opensips.org <users at lists.opensips.org>
Subject: Users Digest, Vol 186, Issue 1

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.


Send Users mailing list submissions to
        users at lists.opensips.org

To subscribe or unsubscribe via the World Wide Web, visit
        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<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
or, via email, send a message with subject or body 'help' to
        users-request at lists.opensips.org

You can reach the person managing the list at
        users-owner at lists.opensips.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Users digest..."


Today's Topics:

   1. regular expression matching question (Faheem Muhammad)


----------------------------------------------------------------------

Message: 1
Date: Tue, 2 Jan 2024 15:24:45 +0400
From: Faheem Muhammad <faheem2084 at gmail.com>
To: OpenSIPS users mailling list <users at lists.opensips.org>
Subject: [OpenSIPS-Users] regular expression matching question
Message-ID:
        <CA++nn_yyAC1h2vGzaV-L0OTgKywVGb5RC8P7Lob83wUnuXp5fA at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi everyone,

Firstly, I wish you all a Happy New Year with the best wishes for each
community member and the OpenSIPS project.

I have a question related to regular expressions matching in an IF
condition.
There are two identical regular expressions. One RE is matching and one RE
is not matching the pattern.

*Sample $fU Range:  *+966123456700 to +96612345650

# RE1 - Matching Regular expression
if($fU =~"\+9661234567[0-4][0-9]|\+966123456750"){
xlog("re matched\n")
}

# RE2  - Non matching Regular expression
if($fU ~="\+9661234567([0-4]\d|50)"){
} # RE not matched

Can anyone please suggest what I'm doing wrong?

*OpenSIPS version*:     3.2.3
OS: *Debian 12*


Best regards,
M. Faheem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <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<http://lists.opensips.org/pipermail/users/attachments/20240102/250194a1/attachment-0001.html>>

------------------------------

Subject: Digest Footer

_______________________________________________
Users mailing list
Users at lists.opensips.org
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<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>


------------------------------

End of Users Digest, Vol 186, Issue 1
*************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240102/d0e4b8e3/attachment.html>


More information about the Users mailing list