Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Updated extract_emails.py #272

Merged
merged 2 commits into from
Oct 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
modified to raw string
  • Loading branch information
DivyanshK12 committed Oct 3, 2020
commit 13cce075d8146341d012cd814f9b6cba866a9508
2 changes: 1 addition & 1 deletion Scripts/Miscellaneous/Email_extractor/extract_emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_emails(filename:str):
for line in file:
#em = re.find('\S+@\S+\.\S+',line)
#print(em)
regex = re.match('\S+@\S+\.\S+',line) # Creates a match object for a correct match
regex = re.match(r'\S+@\S+\.\S+',line) # Creates a match object for a correct match
if regex: #if match exists
emails.append(regex.group(0)) # extracts the text of the match

Expand Down