Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regular Expressions with SIMILAR TO

Status
Not open for further replies.

FrankTheFox

Programmer
Jun 22, 2006
1
DE
Hi,

I think i have a problem with SIMILAR TO.
This is my regular expression...

CREATE DOMAIN EMailAdr AS VARCHAR(255) NOT NULL
CONSTRAINT wrong_EMail
CHECK(VALUE SIMILAR TO '[A-Za-z]+[0-9]*(#|!|%|&|.)*@[a-z]+(-|.)*[a-z]*(-|.)*.[a-z]{2,3}');


I thought that curly bracktes are useful to make a repetition
m through n times. In this case the repetition goes 2 times through 3 times but it wont work.

I don't figure out where am i wrong.

Frank.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top