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".