For those who are learning the basics this is one of the basic email validation expression which makes sure than first input preceding . or _ are all characters, and after . or _ are alphanumeric followed by '@' and then finally '.com'. emails which will be accepted by this email@example.com
firstname.lastname@example.org and emails which will be rejected are abc_d@livecom,email@example.com .