February 6th, 2013, 11:46 PM
Regex mail extension
sorry, this regex is correct to get any email with extension ".de". For example: dds-34@sad-343c,ewr.de, email@example.com, 34df,ewr@45dsf,-ewtr.de, firstname.lastname@example.org ecc..?
Thanks a lot
February 7th, 2013, 01:40 AM
1. s are character sets and match one of whatever characters you put inside. That expression requires the email to end with a "d" or "e".
2. dot-all (.) matches just one character. Use a + after it to match one or more characters.
Protip: your language may provide a better mechanism for validating an email address. Use that.
February 7th, 2013, 12:45 PM
Thank you, very precise and professional