0

@Path("/{firstName: ^(?!nameblacklist$).*$}/{lastName: .*}")

I just want to make this resource not to match string like /nameblacklist/start. But it failed me when testing.

Does not Does not regex in Jersey @Path support complicated expression?

Paul Samsotha
  • 205,037
  • 37
  • 486
  • 720
Jianxin Hu
  • 21
  • 2
  • If it worked as is expected, `/nameblacklist/start` will return 404, and other string will be matched – Jianxin Hu Feb 19 '19 at 08:53
  • Here is an example of a lookbehind working https://stackoverflow.com/a/32778643/2587435. I don't see why a lookahead would not work. – Paul Samsotha Feb 19 '19 at 18:22

0 Answers0