how to get the file name from end
<p>I have different strings but all the stings end with a doc or pdf file
C:\profiles\gim.doc
C:\doc\myprofile\profile.pdf</p>

<p>I want to get the file names from the path.
Whats the fastest way to do it</p>
