Back to home page
  • Email Validation

    Challenge Description:

    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.

    Input sample:

    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. this is not an email id

    Output sample:

    Print out 'true' (all lowercase) if the string is a valid email. Else print out 'false' (all lowercase). E.g.

    true false false true
Login to submit solution