[OpenSIPS-Users] Match regular expression for '+'

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Oct 29 08:42:17 CET 2008


Hi Jayesh,

try:
    if ($ru=~"^sip:\+12127773456 at domain.com 
<mailto:sip%3A%2B12127773456 at domain.com>")

+ is a special chr in regexp and you need to escape it to use it.

Regards,
Bogdan

Jayesh Nambiar wrote:
> Hello,
> Can someone please guide me to write a regular expression that matches 
> URIs like sip:+12127773456 at domain.com 
> <mailto:sip%3A%2B12127773456 at domain.com> in OpenSIPS.
> I want to match numbers starting from '+'.
>
> Any help would be highly appreciated.
>
> Thanks in advance.
>
> w/regards,
> Jayesh
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   




More information about the Users mailing list