for years i have been using the following in my dbman def files to validate email addresses:
'.+@.+..+'
for the first time, someone entered a space in the email address and the db accepted it. the user didn't get an error until attempting to send an email to the invalid address. i found the following expression, which seems to work.
'^[-\w.]+@([A-z0-9][-A-z0-9]+\.)+[A-z]{2,4}$'
do you see any problems with it?
i'm actually amazed this hasn't come up before. thanks!
'.+@.+..+'
for the first time, someone entered a space in the email address and the db accepted it. the user didn't get an error until attempting to send an email to the invalid address. i found the following expression, which seems to work.
'^[-\w.]+@([A-z0-9][-A-z0-9]+\.)+[A-z]{2,4}$'
do you see any problems with it?
i'm actually amazed this hasn't come up before. thanks!