The best i can come up with is:
\[\d{2}\] (\[\d{3} \d{3} \d{3}\]|\[\d{2,3}\] \[\d{3} \d{2} \d{2}\])
which could certainly be abbreviated...but should work as is...
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"PawelR" <pa************@poczta.onet.pl> wrote in message
news:eB**************@tk2msftngp13.phx.gbl...
Hello everybody,
I have problem with regular expression.
I want "code" telephon number and I have two types number:
1) [xx] [xxx xxx xxx] or
2) [xx] ([xx] or [xxx]) [xxx xx xx]
where x - is digital
Maybe someone know where is simple description regular expression - for
complitly beginner.
Thx