正則表達式: 找出不含(排除)某個字符串的全部

Match string not containing string Given a list of strings (words or other characters), only return the strings that do not match.正則表達式 以正則表達式 ^((?!badword).)*$ 搜索如下內容將會獲得除一、4行之外的全部內容。此表達式對於log搜索比較有用。
相關文章
相關標籤/搜索