阅读背景:

Python 正则表达式查找不是某个字符的字符串

来源:互联网 

Regular Expression

1. Find All Except a Specific Word
\b(?!cat\b)\w+

2. Find All Except some words
\b(?!(?:cat|good)\b)\w+

3. Find words that don't contain another word
\b(?:(?!cat)\w)+\b

4. Find words that don's contain other words
\b(?:(?!(?:cat|good))\w)+\b1. Find All Except a Sp



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: