title: Regular Expression for getting everything after last slash
body: <p>I was browsing stackoverflow and have noticed a regular expression for matching everything after last slash is</p>
  
  <pre><code>([^/]+$)
  </code></pre>
  
  <p>So for example if you have <a href="http://www.blah.com/blah/test">http://www.blah.com/blah/test</a>
  The reg expression will extract 'test' without single quotes.</p>
  
  <p>My question is why does it do it? Doesn't ^/ mean beginning of a slash?</p>
  
  <p>EDIT:
  I guess I do not understand how +$ grabs "test". + repeats the previous item once or more so it ignores all data between all the / slashes. how does then $ extract the test</p>