我想检查一个字符串是否不包含字符串,例如:
str1 = "He is a minion, he's so funny."
str2 = "He is not a minion, he's funny."
str3 = "He is not a minion, he's also funny."
我需要检查哪个字符串不包含not
and also
。所以,预期的结果是:str1
is false
, str2
is false
, str3
is true
。
什么是正则表达式?