The module Regular Expression in Python provides a way to match patterns and I am using it to create my own validator for inputted email addresses. I have spent some time over the pattern that checks an email address and I created a string that is very useful in detecting whether a given email is valid or invalid. It is far from perfect, as I have seen the same string to occupies few lines of code when developed by companies like Google for example, but mine is also effective in catching a lot of fake email addresses or even strings that are not an email address at all. It can be used in web forms where Python code can be implemented in background.
Here is my Regular Expression pattern to validate an email address: