If you try Google with "regex email", you'll find plenty of examples.
A prefect regex that is RFC-compliant is very complicated and not very useful in practical cases because RFC support format that is probably never used.
Usually I use this one:
- Code: Select all
IMHO your own regex is doomed, you should always find something existing filtering what you don't want.
Trying to find something that does not exists in regex is a nightmare.
Try using a regex editor like http://gskinner.com/RegExr/