I have a string in perl in the below format.
C:\dir1\dir2\filename.ext
(It may have more than 1 extentsion)
What I wish to do is just get the file name in a number of formats.
I would like out put in the below formats
filename
filename.ext
Could anybody please help me as I don't under stand regex and all the web sites 
I could find weren't very helpfully.
Thanks
Tim
p.s. This MUST be Perl compatible (not by choice)

