Spaces:
Runtime error
Runtime error
File size: 422 Bytes
fdfc45e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import re
# constants
num_of_characters_to_keep = 1000
# regex
html_tag_pattern = re.compile(r"<.*?>")
multi_line_pattern = re.compile(r"\n+")
multi_space_pattern = re.compile(r"( )")
multi_br_tag_pattern = re.compile(re.compile(r'<br>\s*(<br>\s*)*'))
# repl is short for replacement
repl_linebreak = "\n"
repl_empty_str = ""
repl_br_tag = "<br>"
repl_span_tag_multispace = '<span class="chat_wrap_space"> <span>' |