Mar 24, 2005, 5:40 AM
Post #1 of 2
Been trying to find this in my books, but no success......
I have some files I'm trying to rename at the beginning of the filename. 4,200 of them.
This expression will do the ones that have 2 characters in front of the _ , but how can I also change ones that have 3 characters in front of the _ at the same time?
$filetable = "$artist_ids";
$filetable2 = $filetable.'_';
$filename =~ s/.._/$filetable2/i;
Sample filenames are:
It changes the one with an_ , but not the one with tob_
I know it must be something simple? :)