regex is the fucking best its ever been

pull/157/head
Chuck Sneed 2023-06-25 22:09:31 -05:00
parent 3813c0b4cf
commit 2f67638346
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ xmaxing_regex = re.compile('(?<=^|(?<=\s))(([a-zA-Z]+?)(s)?max*ing)(?=$|\n|\s|[.
initial_part_regex = re.compile('(?<=^)(>+)', flags=re.I|re.A)
#matches "the" or is, but only if it is not followed by "fucking"
the_fucking_regex = re.compile('(?<=^|(?<=\s))(the|is)(?! fucking)(?=$|\n|\s|[.?!,])', flags=re.I|re.A)
the_fucking_regex = re.compile('(?<=^|(?<=\s))(the|(is (?:your|her|his|their|no|a|not|to|so|this|the|our|what)( (a|the))?)|is)(?=$|\n|\s)(?! fucking)', flags=re.I|re.A)
#matches a single question mark but only if it isn't preceded by ", bitch"
bitch_question_mark_regex = re.compile('(?<!\?|\!)(?<!, bitch)(\?)(?!!|\?)(?=\s|$)', flags=re.I|re.A)
#matches a single exclamation point but only if it isn't preceded by ", motherfucker"