Fw: How to translate "\\server\alias\*****\file\" with $folder?

Fw: How to translate "\\server\alias\*****\file\" with $folder?

Post by Connie Ch » Mon, 15 Jul 2002 18:41:20



Quote:> my $folder = "foldername";
> my string1 = "\\server\alias\*****\file\";

should be $string1 =)

Quote:> # how to make string1 = \\server\alias\foldername\file\

$string1 =~ s/\*{5}/$folder/g;

the {number} means how many exactly times to match the 'stuff' ( here is * )
before.

Rgds,
Connie