I found this simple regexp (i know it's probably not perfect) somewhere online to validate an email address.
/^(?:\w+\.?)*\w+@(?:\w+\.)+\w+$/
The problem is, that this regexp doesn't allow for the following case:
myname@test-domain.com
my-name@test-domain.com
Any ideas?
ps. I'm using this regexp within javascript.