pythonCopy code`import re re.compile(r".+?("adult|porn|sex| gore violence|gore|drugs|alcohol).*? \Z") # Call the filter function with
adult content to be filtered def filter_adult_content(text): # Remove adult content from text using the regular expression text = ADULT_CONTENT_RE.sub("", text) # Return the filtered text return text
That's what why friend sent me lmao