我知道我可以否定一组字符,[^bar]但是我需要一个正则表达式,其中否定适用于特定的单词 - 所以在我的例子中我如何否定实际bar而不是[^bar]?
[^bar]
bar
regex
regex ×1