Created
January 27, 2014 04:11
-
-
Save geta6/8643150 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use LWP::UserAgent; | |
my $ua = LWP::UserAgent->new; | |
my $req = HTTP::Request->new(GET => 'http://www.keio.ac.jp/ja/contact/sfc.html'); | |
my $res = $ua->simple_request($req); | |
my $cnv = $res->content; | |
$cnv =~ s/0\d{1,5}[-(]\d{1,4}[-)]\d{4}/(telephone number)/g; | |
open(FH, '> ./sfc.html'); | |
print FH $cnv; | |
close(FH); | |
print "done\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment