diff options
Diffstat (limited to 'patterns.py')
| -rw-r--r-- | patterns.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/patterns.py b/patterns.py index 9118227..a91064f 100644 --- a/patterns.py +++ b/patterns.py @@ -2,6 +2,14 @@ import re #### RE PATTERNS #### re_contains_meow = re.compile(r'(me+o+w|喵)',re.IGNORECASE) - +re_contains_bird = re.compile(r'(鸟|bird)',re.IGNORECASE) #### MISC STRING PRESETS #### cat_sounds = ["Meow!", "Mrrrow!", "Purr...", "Meee-OW!", "Mreoww!", "Nya~", "Mew?", "Rowr?", "Prrrr...", "Maow-maow!"] +bird_sounds = ["鸟!", "chirp!"] + +#### PARSE STATUS HTMLs.... +RE_HTML_CLEANR = re.compile('<.*?>') + +def cleanhtml(raw_html): + cleantext = re.sub(RE_HTML_CLEANR, '', raw_html) + return cleantext |
