Hi
I have a mailid like [EMAIL PROTECTED]@ As part of email validation
I have to check it [EMAIL PROTECTED] So I did
"[EMAIL PROTECTED]@@".split('@') So I get ['test','123.com'] But if it
were [EMAIL PROTECTED] the expected validation is correct But the lase two @
signs are not recognized by split So how can check that after 123.com
still there is @ sign and declare my validation as failed?
Sijo
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---