This piece of regex is a simple format verification for email addresses. It accepts only most common email addresses and it favors simplicity over exhaustivity, but should work for 99% of the cases. Based on this Stackoverflow thread : https://stackoverflow.com/a/60137352/14705619