fork download
  1. #!/bin/bash
  2. Email=me@example.com
  3. if [[ "$Email" =~ [a-z]+@[a-z]{2,}\.(com|net|org) ]]
  4. then
  5. echo "Valid email!"
  6. fi
Success #stdin #stdout 0s 4288KB
stdin
Standard input is empty
stdout
Valid email!