perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tu Nguyen" ...@truepath.com>
Subject Regex problem
Date Mon, 10 Jul 2000 22:10:41 GMT

Hi all,

Can somebody show me how to use regular expression to subtitute a string
with speacial character such as [* , ?]  in it ?

for example

$string = 'test ? test';
$input = 'Start test ? test End';
$change = 'Change';

$input =~ s/$string/$change/g;

After change, I expect $input = 'Start Change End'  but I never got it.

Thanks alot for any help.

Nguyen


Mime
View raw message