users@jersey.java.net

[Jersey] default regex for path variables

From: Waclaw Kusnierczyk <waclaw.kusnierczyk_at_gmail.com>
Date: Wed, 28 Jan 2015 11:37:14 +0100

In sec. 3.1.1 of
https://jersey.java.net/documentation/latest/jaxrs-resources.html, you
state that the default regular expression for path variables is "[^/]+?".
This seems wrong. I assume what you mean is "one or more non-slash
characters"; what the above says, is "one or more non-slash characters, but
as few as possible"---effectively, just one non-slash character. Didn't
you mean "[^/]+"?

Best,
Wacek