should be $string1 =)Quote:> my $folder = "foldername";
> my string1 = "\\server\alias\*****\file\";
$string1 =~ s/\*{5}/$folder/g;Quote:> # how to make string1 = \\server\alias\foldername\file\
the {number} means how many exactly times to match the 'stuff' ( here is * )
before.
Rgds,
Connie