我想检查一个字符串是否不包含字符串,例如:
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."
我需要检查哪个字符串不包含notand also。所以,预期的结果是:str1is false, str2is false, str3is true。
什么是正则表达式?