title: Symfony @ROUTE("/{id}") regex requirements not working
body: <p>On a Symfony Controller I am using annotations to match only URIs ending like</p>
  <pre><code>.../integer-integer
  or
  .../integer
  </code></pre>
  <p>my code</p>
  <pre><code> /**
   * @Route(&quot;/notification/old/{id}&quot;, requirements={&quot;id&quot; = &quot;(^\d+$)|(^\d+\-\d+$)&quot;})
   * @Method(&quot;GET&quot;)
   */
  </code></pre>
  <p>According to <a href="https://regex101.com/#pcre" rel="nofollow noreferrer">Regex101</a> my pattern is correct.
  However, Symfony returns</p>
  <blockquote>
  <p>No route found for &quot;GET /notification/old/1-1&quot;<br />
  No route found for &quot;GET /notification/old/1&quot;</p>
  </blockquote>
  <p>What I am doing wrong?</p>