I am trying to extract ".jpg" (subtype of the file) from the string:
c:\my_files\file.jpg

I found the following pattern on the net:
$file =~ s/.*[\/\\](.*)/$1/;
which extracts the file name (file.jpg). I understood most of that pattern except what does the (.*) part does? And how can I tweak it so I only get the "jpg" part.

thanks,
M



_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to