Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
re.sub solution in Clear category for Unique Email Addresses by StefanPochmann
import re
def unique_emails(emails: list[int]) -> int:
return len({re.sub(r'\.|\+[^@]*|(@.*)', r'\1', s).lower() for s in emails})
Nov. 18, 2021
Comments: