Perl 去掉指定字符

2015-03-31  本文已影响357人  Waste_Land

去掉字符串中的*

$test = "acc";
$test =~ s/*//g;
print $test; #acc

上一篇 下一篇

猜你喜欢

热点阅读