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.
可以传递什么类型的模式?示例:正则表达式、通配符等。我找不到详细说明此内容的 java 文档或其他文档。
根据源代码中的javadoc :
deleteByPattern 支持这些 glob 样式模式:
h?llo subscribes to hello, hallo and hxllo h*llo subscribes to hllo and heeeello h[ae]llo subscribes to hello and hallo, but not hillo