This character class excludes “.” “@” whitespace and “,” from being in
the first part of the e-mail.
Remove the dot and [email protected] will be allowed.
However, [email protected] will also be allowed. It’s up to you here
- do you want to make the regex perfect or will this be good enough.
I think what you want is a optional repeating sequence of characters
followed by exactly 1 “.” followed by a final sequence of characters
before the @
Something like this
Though you probably need to read here:
On Thu, Sep 24, 2009 at 10:48 AM, Sijo Kg [email protected] wrote:
Some example which are valid for above
Posted via http://www.ruby-forum.com/.