Now I check the email addresses as follows:
[-+.'\w]+@[-.\w]+\.[-.\w]+
This means that if users accidentally have a trailing or leading space at this address (for example, when copying / pasting), the expression checks for false.
So, I want to allow the final and leading space in the above expression. How can i do this?
source
share