如果在同一行中找到两个模式,则删除行

dov*_*vah 2 sed text-processing regular-expression

input.txt如果在同一行中找到两个模式 (string1string2),我想从文本文件 ( ) 中删除一行,使用.sed

我正在尝试: sed -i "/\b\(string1\|string2\)\b/d" input.txt,但这是删除包含string1OR 的行string2