title: Is possible to get last path of RegExp in URL
body: <p>Is possible to get the last value in URL results in the following string:  </p>
  
  <pre><code>http://www.example.com/snippets/rBN6JNO/
  </code></pre>
  
  <p>My RegEx is matching the whole string  </p>
  
  <pre><code>\/.+\/
  </code></pre>
  
  <p>It matches:    </p>
  
  <pre><code>//www.example.com/snippets/rBN6JNO/
  </code></pre>
  
  <p>I want to get the last value:  </p>
  
  <pre><code>rBN6JNO
  </code></pre>
  
  <p>Or should I use another method?</p>