On 11/29/06, Jayesh Nambiar <voip_freak@yahoo.co.in > wrote:
Hi all,
Can someone please help me in formulating a regular expression. I have an expression like this:
if(uri=~"^sip:1[0-9]*@)
This matches numbers like 15552221212, but also matches number like 15552221212#.

when i make it as:
if(uri=~"^sip:1[0-9]@*)

Use this
if (uri=~"^sip:1{8}[0-9]@" )


 

Again this matches any special characters after the number.

I just wanted a regular expression that will match only numbers and no alphabets or special characters.
Can someone please help me to formulate a regular expression for this.

Thanks in advance.

w/regards,
Jayesh


Find out what India is talking about on - Yahoo! Answers India
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW

_______________________________________________
Users mailing list
Users@openser.org
http://openser.org/cgi-bin/mailman/listinfo/users





--
Thanks and Regards
Ravi Prakash Sunkara
ravi.sunkara@hyperion-tech.com
M:+91 9985077535
O:+91 40 23114549
F:+91 40 40208727
ravi.sunkara@hyperion-tech.com
www.hyperion-tech.com