Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个正则表达式
[^a-z]*
不包括所有字母/单词。但是如何重做它,以便它仍然排除所有字母/单词,除了我们指定的单词。
只需将您要包含的单词列表作为替代词,即word1|word2|[^a-z]*
word1|word2|[^a-z]*