[Users] regular expression
Marc Haisenko
haisenko at comdasys.com
Mon Apr 10 11:22:11 CEST 2006
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".
--
Marc Haisenko
Comdasys AG
Rüdesheimer Straße 7
D-80686 München
Tel: +49 (0)89 - 548 43 33 0
Fax: +49 (0)89 - 548 43 33 29
e-mail: haisenko at comdasys.com
http://www.comdasys.com
More information about the Users
mailing list