I am working on extracting certain text from emails using Python Regex
I have tried below:
import re
email = """Hi John,
I am emailing regarding REQ-12345 and REQ-66442.
Many Thanks,
Jane"""
re.findall(r'(?=REQ-)',email)
Expected Output: ['REQ-12345', 'REQ-66442']
Actual Output: ['', '']
I have also tried multiple different things which aren't giving the right results.
How do I achieve the desired output?