Hi, i am using filters to extract words after the word “from” in an email SUBJECT line. The python I am using is not working...does anyone know python well and able to help?
Here’s what I am using
import re
text = "Import data from file.txt"
match = re.search(r'from\s+(\w+)', text, re.IGNORECASE)
if match:
captured_word = match.group(1)
print(captured_word)
else:
print("No match found")
Thanks ahead of time for your help!