具有多个字符串的正则表达式负向前瞻

时间:2018-02-16 19:56:13

标签: regex regex-lookarounds

我正在尝试从查询中排除特定字符串:

在此处使用此博文: https://blog.codinghorror.com/excluding-matches-with-regular-expressions/

我发现以下内容适用于一个字符串(在本例中为Fox):

(?!Fox\b)\b\w+

但是,我想添加OR条件并排除三个字符串。

0 个答案:

没有答案
相关问题