I am using Asp.Net/C# in my project.In one of my forms I am using Regular Expression Validator to validate an email address.I searched for some examples for validating email.I found this \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
Can anybody explain me this pattern , it would be really helpful.
Any explanation is much appreciated.
Thanks.
Some short hints:
\w stands for word character
[-+.’] for one of the characters in the braces
plus and * are quantifiers
( ) surround a group which can create a backreference (something you could refer to or read programmatically)
A longer (automated) explanation:
I used RegexBuddy to created the longer, automated explanation
Edit:
To have some starter info on regular expressions you can take a look at http://www.regular-expressions.info/