Source Code - Email spliter by domain , @gmail.com, @yahoo.com, @outlook.com . | Web Scripts | Crax

Welcome To Crax.Pro Forum!

Check our new Marketplace at Crax.Shop

   Login! SignUp Now!
  • We are in solidarity with our brothers and sisters in Palestine. Free Palestine. To learn more visit this Page

  • Crax.Pro domain has been taken down!

    Alternatives: Craxpro.io | Craxpro.com

Source Code Email spliter by domain , @gmail.com, @yahoo.com, @outlook.com .

Source Code Email spliter by domain , @gmail.com, @yahoo.com, @outlook.com .

LV
1
 

harchaoui2

Member
Joined
Nov 9, 2023
Threads
10
Likes
4
Awards
4
Credits
666©
Cash
0$
source code for email spliter by domain :

import re

# Sample text containing email addresses
text = """
Here are some sample email addresses:
john.doe@gmail.com
jane.smith@yahoo.com
james.brown@hotmail.com
"""

# Regular expression to match email addresses
email_regex = r'\S+@\S+'

# Find all email addresses in the text
email_addresses = re.findall(email_regex, text)

# Create a dictionary to store emails by domain
email_domains = {}

# Split and group email addresses by domain
for email in email_addresses:
domain = email.split('@')[1]
if domain not in email_domains:
email_domains[domain] =
else:
email_domains[domain].append(email)

# Print email addresses grouped by domain
for domain, emails in email_domains.items():
print(f'Domain: {domain}')
for email in emails:
print(f' - {email}')
 
  • Like
Reactions: fognayerku

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Top Bottom