More Related Content
ใบความรู้ที่ 2.8 รูปแบบของข้อความ Scenario planning and strategy webinar dr. awais e siraj genzee solutions Enlace Ciudadano Nro. 254 - Plan para el fortalecimiento de las empresas públ... Corrie Greene Resume 2015 Viewers also liked (7)
Forces Behind The Connected Car 84-85 08ay live report demi lovato acc revisi RE/MAX 2013 Dominates Canadian RealTrends 250 - #1 Average Transactions Per A... Similar to Data munging (20)
Panduan Penyusunan KOSP. okumen kurikulum operasional di satuan pendidikan pe... Developments in The Qt WebKit Integration شبكات الكمبيوتر من البداية حتى الاحتراف 対応点を用いないローリングシャッタ歪み補正と映像安定化ポスター 4.1. Harvey Neoliberalismo.pdf Perl Hobby Programming - Games::BeLike::EightBIT ターミナルで8ビット風ゲームをつくろう Bentolila jimeno2002 LA REFORMA DE LA NEGOCIACIÓN EN ESAÑA ใบความรู้ที่ 2.9 แทรกรูปภาพ Communications orales du caisp 2012 01Business n°2165 - Gare aux Espions ! agroquimicos_compress.pdf Data munging
- 1. #!/usr/bin/perl
use Jcode;
$out = 0; #回答箇所(「A:」から「Q:」の間に複数段落あっても対応)
while(<>)
{
chop;
$in = $_;
# $in = jcode($_)->
tr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890¥
.,…-=~%&#!¥¥¥^¥.¥$¥@¥;:¥'¥"¥*¥?¥|¥(¥)¥[¥]¥{¥}+/<>","ABCDEFGHIJKL
MNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
1234567890.・・・ー=~%&#!\^.$@;:’
, ”*?|() {}+/<
[]
>") -> utf8;
$in =
jcode($_)->tr("A:BCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz12
34567890¥.,¥…-=~%&#!¥¥¥^¥.¥$¥@¥;:¥'¥"¥*¥?¥|¥(¥)¥[¥]¥{¥}+/<>",jcode("A:BC
DEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq
rstuvwxyz1234567890.・ー=~%&#!\^.$@;:’
, ”*?|()
[]{}+/<>")->euc)->utf8;
next if($in =~ /^(/); #( )の行を削除
next if($in =~ /^《/); #《 》の行を削除
next if($in =~ /^〈/); #〈 〉の行を削除
if($in =~ s/^A://g or $in =~ s/^A1://g or $in =~ s/^A2://g or $in =~ s/^A
3://g or $in =~ s/^A4://g or $in =~ s/^A5://g or $in =~ s/^A6://g or $in =~ s/^A
7://g or $in =~ s/^A8://g or $in =~ s/^A9://g or $in =~ s/^B(奥さま)
://g or $in =~
s/^B://g or $in =~ s/^B(奥様)://g)
{
# $in =~ s/^ //g;#行頭の全角スペース削除
$out = 1;
}
if($in =~ /^Q:/ or
$in =~ /^Q1:/ or $in =~ /^Q2:/ or $in =~ /^Q3:/ or
- 2. $in =~ /^Q4:/ or $in =~ /^Q5:/ or $in =~ /^Q6:/ or
$in =~ /^Q7:/ or $in =~ /^Q8:/ or $in =~ /^Q9:/)
{
$out = 0;
}
if($out)
{
print $in."¥n";
}
}