title: Getting just the filename from a path with JavaScript
body: <p>I have a full path to an image, which I am using jQuery to read like this:</p>
  
  <pre><code>$('img.my_image').attr('src');
  </code></pre>
  
  <p>However I just want the <em>filename</em> portion (i.e. without full path).</p>
  
  <p>Are there any built-in functions to do this, or would a <em>regex</em> be the only option?</p>