1. Match a line that does not contain a specific word (eg, error)
(?im)^(?:(?!\berror\b).)*$
2. Match a line that does not contain specific words (eg. error, fail)
(?im)^(?:(?!\b(?:error|fail)\b).)*$
Python 查找不含有特定单个或多个字符的行
最新推荐文章于 2024-07-25 03:43:03 发布