Hello,
I tried to create a very basic regular expression that will match an email address. Its meant to be as simple as possible, and shouldn't worry about the types of characters used. However its not working and i'm not sure why.
/^([^@]+@[^\.]+\.\w+(\.\w+)?){6,100}$/
-Match anything except the @ character
-Match an @ character
-Match anything except the . character
-Match a . character
-Match any number of letters
-If exists match a . character then any number of letters
Anyone tell me whats not right about the expression?
Thanks alot,
Chris
I tried to create a very basic regular expression that will match an email address. Its meant to be as simple as possible, and shouldn't worry about the types of characters used. However its not working and i'm not sure why.
/^([^@]+@[^\.]+\.\w+(\.\w+)?){6,100}$/
-Match anything except the @ character
-Match an @ character
-Match anything except the . character
-Match a . character
-Match any number of letters
-If exists match a . character then any number of letters
Anyone tell me whats not right about the expression?
Thanks alot,
Chris