这个问题在这里已经有了答案:
11 年前关闭。
Possible Duplicate:
Java \ Pattern - how to write a pattern that verifies the lack of a string?
如何通过正则表达式匹配所有没有“授权”字样的字符串?我试过
*(authorize){0}*
无济于事。
最佳答案
关于regex - 匹配所有不含 "authorize"的字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3180990/