Shaunn -- ...and then Johnson, Shaunn said... % % Question about capturing a file name with % spaces using regular expressions.
Is that the problem or is it simply getting rid of the dir path at the front? % ... % [snip example] % % /samba/hmp/iso/06/UNASSIGNED-06 - DUMMY-06.iso % % [/snip example] % % My goal is to print "UNASSIGNED-06 - DUMMY-06.iso" (and % then later on cut out the .iso part). If I can do that, % then I think I can do the rest. That ought to be pretty easy. % % Suggestions? How about something like use File::Basename; ... my ($name,$path,$suffix) = fileparse("$names","\.iso"); ... to parse out the pieces? If that's too complex, then basename() ought to do it for you. % % Thanks! HTH & HAND % % -X :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg25146/pgp00000.pgp
Description: PGP signature