<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=312521616-28092005><FONT face=Arial size=2>Hello all, very glad 
to have been a user on this list, though I have been 
lurking.</FONT></SPAN></DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial size=2>I've checked the 
documentation and have had trouble finding out information on how to translate 
my standard regexes (perl) into SER's routing logic</FONT></SPAN></DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial size=2>I'm trying to use 
the following logic:</FONT></SPAN></DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial size=2>if (uri =~ 
"^sip:1[0-9]{10}\@[0-9]{3}\.[0-9]{3}\.1\.foo\.bar\.net") {</FONT></SPAN></DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
#perform actions</FONT></SPAN></DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial 
size=2>}</FONT></SPAN></DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial size=2>Now, that SHOULD 
match the following scenario:</FONT></SPAN></DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial size=2>uri has 1 + 10 
digits + @ + 3digits + . + 3digits + . + 1 + .foor.bar.net</FONT></SPAN></DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial size=2>Unfortunately, it's 
not working.Any help translating the regex, or even just a link to the syntax 
allowed, maybe it's not allowing {n} to match n times?</FONT></SPAN></DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial 
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=312521616-28092005><FONT face=Arial size=2>Sherwood 
McGowan</FONT></SPAN></DIV></BODY></HTML>