Adding simple e-mail validation to my code, I created the following function:
def isValid(email: String): Boolean = if("""(?=[^\s]+)(?=(\w+)@([\w\.]+))""".r.findFirstIn(email) == None)false else true
This will pass emails like bob@testmymail.com and fail mails like bobtestmymail.com, but mails with space characters slip through, like bob @testmymail will also return true.
I'm probably being silly here...
 
     
     
     
     
    