2008年7月27日日曜日

Perlのtag除去処理

open(IN, "0000000.html");
while () { $source .= $_;}
close(IN);
$source =~ s/<.*?>//g;
open(OUT, "> test.html");
print(OUT $source);
close(OUT);

0 件のコメント: