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.
我有这个 Jax-rs 路径:
@GET @Path("{id: \\b(?!_ah)\\w+\b}") public Response get(...){...}
我的目标是这个 get 方法匹配所有字符序列,除了那些以_ah如下开头的字符序列:
_ah
_ah\foo _ah\foo\bar
但是,正则表达式有问题。