title: JAX-RS/Jersey path parameter regex for a simple string
body: <p>I am trying to match strings <code>v1</code> and <code>v2</code>. For that, I am trying the following regex : <code>^v(1|2)</code> (I also tried with <code>$</code> which is probably what I need). When I test it in <a href="http://www.regextester.com/" rel="nofollow">http://www.regextester.com/</a>, it seems to work fine. But when I used it in JAX-RS path expression it doesn't work. The expression I use is below:</p>
  
  <p><code>@Path("/blah/{ver:^v(1|2)}/ep")</code></p>
  
  <p>Is there anything specific to JAX-RS that I am missing?</p>