title: Regex to find last token on a string
body: <p>I was wondering if there is a way having this </p>
  
  <pre><code>var string = "foo::bar"
  </code></pre>
  
  <p>To get the last part of the string: <code>"bar"</code> using just regex.</p>
  
  <p>I was trying to do look-aheads but couldn't master them enough to do this.</p>
  
  <p>-- </p>
  
  <p>UPDATE</p>
  
  <p>Perhaps some examples will make the question clearer.</p>
  
  <pre><code>var st1 = "foo::bar::0"
  match should be 0
  
  var st2 = "foo::bar::0-3aab"
  match should be 0-3aab
  
  var st3 = "foo"
  no match should be found
  </code></pre>