2014-11-26から1日間の記事一覧
覚書です hoge.htmlからhtmlへのリンクファイル一覧を取り出すコード $htm = cat hoge.html -Raw -Encoding UTF8 $regex = "<\s*a\s*[^>]*?href\s*=\s*[`"']*([^`"'>]+)[^>]*?>" $pat = $htm | select-string -pattern $regex -AllMatches $pat.matches | %{…
覚書です hoge.htmlからhtmlへのリンクファイル一覧を取り出すコード $htm = cat hoge.html -Raw -Encoding UTF8 $regex = "<\s*a\s*[^>]*?href\s*=\s*[`"']*([^`"'>]+)[^>]*?>" $pat = $htm | select-string -pattern $regex -AllMatches $pat.matches | %{…