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

Commit 13cce07

Browse files
committed
modified to raw string
1 parent 7f196d3 commit 13cce07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Scripts/Miscellaneous/Email_extractor/extract_emails.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_emails(filename:str):
1414
for line in file:
1515
#em = re.find('\S+@\S+\.\S+',line)
1616
#print(em)
17-
regex = re.match('\S+@\S+\.\S+',line) # Creates a match object for a correct match
17+
regex = re.match(r'\S+@\S+\.\S+',line) # Creates a match object for a correct match
1818
if regex: #if match exists
1919
emails.append(regex.group(0)) # extracts the text of the match
2020

0 commit comments

Comments
 (0)