title: Ruby regexp: capture the path of url
body: <p>From any URL I want to extract its path.</p>
  
  <p>For example:</p>
  
  <p>URL: <a href="https://stackoverflow.com/questions/ask">https://stackoverflow.com/questions/ask</a>
  Path: questions/ask</p>
  
  <p>It shouldn't be difficult:</p>
  
  <pre><code>url[/(?:\w{2,}\/).+/]
  </code></pre>
  
  <p>But I think I use a wrong pattern for 'ignore this' ('?:' - doesn't work). What is the right way?</p>