bprzy commited on
Commit
8e4b579
·
1 Parent(s): 8c8e6a7

Regex match all chars, include newline

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ def find_tag_content(content, tag1, tag2):
82
  tag1 = tag1.replace(']', '\]')
83
  tag2 = tag2.replace('[', '\[')
84
  tag2 = tag2.replace(']', '\]')
85
- result = re.search(tag1 + '(.*)' + tag2, content)
86
  if result: return result.group(1).strip()
87
  return ""
88
 
 
82
  tag1 = tag1.replace(']', '\]')
83
  tag2 = tag2.replace('[', '\[')
84
  tag2 = tag2.replace(']', '\]')
85
+ result = re.search(tag1 + '(.*)' + tag2, content, re.DOTALL)
86
  if result: return result.group(1).strip()
87
  return ""
88