Feb-10-2020, 04:38 AM
str_to_clean = re.sub("^.*\b(bad|naughty)\b.*$", "", str_to_clean, flags=re.IGNORECASE)
Remove a sentence if it contains a word.
|
|
Messages In This Thread |
Remove a sentence if it contains a word. - by lokhtar - Feb-10-2020, 03:11 AM
RE: Remove a sentence if it contains a word. - by Larz60+ - Feb-10-2020, 04:26 AM
RE: Remove a sentence if it contains a word. - by lokhtar - Feb-10-2020, 04:38 AM
RE: Remove a sentence if it contains a word. - by Larz60+ - Feb-10-2020, 12:33 PM
RE: Remove a sentence if it contains a word. - by lokhtar - Feb-11-2020, 02:59 PM
RE: Remove a sentence if it contains a word. - by lokhtar - Feb-11-2020, 04:33 PM
RE: Remove a sentence if it contains a word. - by stullis - Feb-11-2020, 04:43 PM
|