Closed Pahiro closed 3 weeks ago
Line 66: body_re = re.search("</idx:orth>(.*?)</idx:entry>", str(e))
This line wasn't getting multiline matches in my HTML. Escaping the / and adding re.S as a search parameter sorted my issue.
body_re = re.search("<\/idx:orth>(.*?)<\/idx:entry>", str(e), re.S)
Line 66: body_re = re.search("</idx:orth>(.*?)</idx:entry>", str(e))
This line wasn't getting multiline matches in my HTML. Escaping the / and adding re.S as a search parameter sorted my issue.
body_re = re.search("<\/idx:orth>(.*?)<\/idx:entry>", str(e), re.S)