Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emails with dots does not match #1

Open
martindube opened this issue Jan 22, 2019 · 3 comments
Open

Emails with dots does not match #1

martindube opened this issue Jan 22, 2019 · 3 comments

Comments

@martindube
Copy link

Hi!

The email regex email_expression does not include email addresses with dot in the prefix.

@babaoye
Copy link

babaoye commented Sep 24, 2022

emailRegex = re.compile(r'([A-Za-z0-9]+[.-_])*[A-Za-z0-9]+@[A-Za-z0-9-]+(.[A-Z|a-z]{2,})+', re.VERBOSE) # regex for validating an email format

@babaoye
Copy link

babaoye commented Sep 24, 2022

https://github.com/Shane004/Email-Scraping/tree/broader-quick-search

That is a new pull request for this project but it is limited you can only search domain specific emails for the bulk email....it would have been better if it could be possible to search every single domain present in the url

@oskarkraemer
Copy link

I use the following regex to also include email addresses with dot in the prefix:

emailRegex = re.compile(r'''
  # Matches emails, example:
  # [email protected]
  # [email protected]
  (
  ([a-zA-Z0-9_.+-]+)  # Username characters: letters, digits, dots, underscores, pluses, hyphens
  @
  ([a-zA-Z0-9-]+      # Domain name part before last dot: letters, digits, hyphens
  (\.[a-zA-Z0-9-]+)*  # Optional middle subdomains: start with a dot, followed by letters, digits, hyphens
  \.[a-zA-Z]{2,})     # Top-level domain: dot followed by two or more letters
  )
''', re.VERBOSE)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants