Spaces:
Configuration error
Configuration error
Regex match all chars, include newline
Browse files
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 |
|