Perlの文字クラス
公開日:
:
最終更新日:2014/01/31
プログラミング
今日は文字クラスを勉強したよ。
$_ = "The HAL-9000 requires authorization to continue.";
if(/HAL-[0-9]+/){
print "The string mentions some model of HAL computer.\n";
}
関連記事
- PREV
- 人力検索はてな 質問用Visual Basicコード
- NEXT
- 仕事で正規表現を書いてみた