On Thursday 25 September 2008, BERGANZ François wrote:
I have a problem with my emergency calls
if (uri=~"^sip:1[578]{1}@*" || uri=~"^sip:11[29]{1}@*")
if I call 170725014, it think that it is 17 (emergency in france)
is my "if" syntaxe is correct ?
The if is correct, the regexp isn't: you try to match zero or more @'s
Try:
if ($rU =~ "^1[578]$$" || $ru =~ "^11[29]$$")
--
Greetings,
Alex Hermann