What is the best way to cut the file name from 'href' attribute of an 'a' element using jQuery?
<p>For example I've got the simple code:</p>

<pre><code>&lt;ul class="list"&gt;
  &lt;li&gt;&lt;a href="http://www.aaa.com/bbb/ccc/file01.pdf"&gt;Download file 01&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="http://www.bbb.com/ccc/ddd/file02.pdf"&gt;Download file 02&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>and I wish to store in variables only the file names: file01.pdf and file02.pdf, how can I cut them?</p>

<p>Many thanks for the help.</p>

<p>Cheers.</p>
