本文へスキップ

第6章 正規表現

 
$str = 'yesterday'
if ($str =~ /yes/) {
print "Match!\n;
} else {
print "No match\n";
}

#マッチした文字列を得る変数

print "$& --- Match!\n"

#否定文字クラス[^0-9]







inserted by FC2 system