Jul-05-2023, 12:10 PM
pattern = re.compile(r'<img.+.+') matches = pattern.finditer(text, re.DOTALL) for match in matches: print(match.group(0))Nothing still, I still get the same part of output, not all.
I'm getting:
Output:<img width="874" height="162" id="Picture_x0020_2" src="cid:[email protected]" alt="A picture containing text, screenshot, font, algebra
And I'm looking for this:Output:<img width="874" height="162" id="Picture_x0020_2" src="cid:[email protected]" alt="A picture containing text, screenshot, font, algebra
Description automatically generated" style="width:9.1in; height:1.6833in">