I know this is a common question, but I still can't seem to find a great regular expression to use when validating email addresses. What is the best regular expression you have or have seen for validating emails with below condition?
- email constructor: first_element@second_element
- first_element: the first element (user name part)
- second_element: the second element (domain part)
The condition is: All the element not contain spaces, control characters, or non-ASCII characters. thanks