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 firstname.lastname@example.org
email@example.com and emails which will be rejected are abc_d@livecom,firstname.lastname@example.org .