Quote:
Originally Posted by TonytheBookworm
I would eventually like to learn how to do is use re.search(.....) and find words like boobuckle and replace it with censored or something to that nature.
|
Like this:
Code:
preprocess_regexps = [
(re.compile(r'boobuckle', re.DOTALL|re.IGNORECASE),lambda match: 'censored')
]