[Serusers] Regular Expression Problems in this if statement?

Juha Heinanen jh at tutpro.com
Wed Sep 28 18:25:54 CEST 2005


Sherwood McGowan writes:

 > if (uri =~ "^sip:1[0-9]{10}\@[0-9]{3}\.[0-9]{3}\.1\.foo\.bar\.net") {
 >     #perform actions
 > }

try without \ in front of @.

-- juha




More information about the sr-users mailing list