title: Using Regex with Lumen route
body: <p>I am trying to make a part of route case insensitive, so I tried using <code>(?i)</code> modifier in order achieve that:</p>
  
  <pre><code>(?i)my/route
  </code></pre>
  
  <p>However, there is a line in <code>nikic router</code> that Lumen is using</p>
  
  <pre><code>$regex .= preg_quote($part, '~');
  </code></pre>
  
  <p>that replaces regex parts of the url, and at the end my url looks like this:</p>
  
  <pre><code>/\(\?i\)my/route
  </code></pre>
  
  <p>Is there a way to put regex inside the url in Lumen that I'm not aware of?</p>