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]
- RE: matching patterns mario kulka
- RE: matching patterns Mark Anderson
- RE: matching patterns yargo
- Re: matching patterns Rob Dixon
- RE: matching patterns Bob Showalter
- matching patterns Diego Riano
- Re: matching patterns Stefan Lidman