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!

email address check

Status
Not open for further replies.

mwmark

Technical User
Jun 5, 2007
23
US
Does anyone have a routine to check a string to see if it looks like a valid email address. example: does it have a "@" in it are there spaces or other invalid email Characters?
 
Try something like:

instr({table.field},"@") > 0
and
instr({table.field}," ") = 0
and
instr("@drphil.com",{table.field}) = 0
// nobody should ever write dr phil
and
...etc..

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top