hi all, I want to match the ruri "*86". Can someone please help me with the regular expression to match this. When I do "^sip:*86[0-9]*@", it does not match this expression. Can you also point me to some link which explains well about how to write regular expressions. thank you..
jayesh
--------------------------------- Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
* is a reserved char within regexp so you have to scape it in order to check wether the uri contains the asterisk: Change: ^sip:*86[0-9]*@
For: ^sip:*86[0-9]*@
2006/4/10, Jayesh Nambiar voip_freak@yahoo.co.in:
hi all, I want to match the ruri "*86". Can someone please help me with the regular expression to match this. When I do "^sip:*86[0-9]*@", it does not match this expression. Can you also point me to some link which explains well about how to write regular expressions. thank you..
jayesh
Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time. _______________________________________________ Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
On Monday 10 April 2006 11:14, Jayesh Nambiar wrote:
hi all, I want to match the ruri "*86". Can someone please help me with the regular expression to match this. When I do "^sip:*86[0-9]*@", it does not match this expression.
If you want to match the star (*) you need to escape it: "^sip:*86[0-9]*@". Your regex was: "match 'sip' at the beginning of a line, and then zero or more colons, followed by '86', zero or more numbers and then an '@'". The problem is the ":*" part which means "zero or more colons" instead of "colon followed by a star".