<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi,<br>Thanks for your reply but it will not match only two digits as I have specified the range( [0-9] ). Actually my primary requirement is it should not match any alphabets or special characters with the numbers.<br>I want that only the number should be matched.<br><br>w/regards,<br>Jayesh<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Alexandr Dubovikov &lt;shurik@start4.info&gt;<br>To: Jayesh Nambiar &lt;voip_freak@yahoo.co.in&gt;<br>Cc: users@openser.org<br>Sent: Wednesday, 29 November, 2006 1:15:51 PM<br>Subject: Re: [Users] regular expression<br><br><div>On Wed, Nov 29, 2006 at 12:58:44PM +0530, Jayesh Nambiar wrote:<br>&gt; Hi all,<br>&gt; Can
 someone please help me in formulating a regular expression. I have an expression like this:<br>&gt; if(uri=~"^sip:1[0-9]*@) <br>&gt; This matches numbers like 15552221212, but also matches number like 15552221212#.<br>&gt; <br>&gt; when i make it as:<br>&gt; if(uri=~"^sip:1[0-9]@*)<br>&nbsp;&nbsp;&nbsp;&nbsp;<br>not really, in this regexp your number can have only 2 digits and first one<br>should ne "1".<br><br>&gt; Again this matches any special characters after the number.<br>&gt; <br>&gt; I just wanted a regular expression that will match only numbers and no alphabets or special characters.<br>&gt; Can someone please help me to formulate a regular expression for this.<br><br><br>if(uri=~"^sip:1[0-9]+@*)<br><br>&gt; <br>&gt; Thanks in advance.<br><br><br>-- <br>Alexandr Dubovikov * baron@iRC RusNet * mailto:shurik@start4.info<br>&nbsp;&nbsp;&nbsp;&nbsp;AD1-UANIC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;ICQ: 122351182&nbsp;&nbsp;*&nbsp;&nbsp;<a target="_blank"
 href="http://www.start4.info">http://www.start4.info</a><br></div></div><br></div></div><br>
        

        
                <hr size=1></hr> 
Find out what India is talking about on  - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! Answers India</a> <BR> 
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. <a href="http://us.rd.yahoo.com/mail/in/messengertagline/*http://in.messenger.yahoo.com">Get it NOW</a></body></html>