You are given several strings that may/may not be valid emails. You should write a regular expression that determines if the email id is a valid email id or not. You may assume all characters are from the english language.
Your program should accept as its first argument a filename.
This file will contain several text strings, one per line.
Ignore all empty lines. E.g.
email@example.com this is not an email id admin#codeeval.com firstname.lastname@example.org
Print out 'true' (all lowercase) if the string is a valid email. Else print out 'false' (all lowercase). E.g.
true false false true