scorpioyu
全部博文(41)
dump(1)
gnuplot(0)
graphics(1)
kerberos(0)
audit(2)
XCP(1)
tools(2)
trivial(1)
xenbus(2)
evtchn(3)
xen(0)
ip_conntrack(1)
iptables(7)
netfilter(5)
2010年(41)
vv1133
wsysx
huier_10
zhu_9527
yanwei_3
gray1982
分类:
2010-01-27 18:09:30
#!/usr/bin/perl -w# practise how to use g flag and ? min match patten.$string="data1data2data3data4";
while ($string =~ /<TR>(.*?)<\/TR>/gi) { #$&: data4, patten in // all. #$1: data4, patten just in /()/, has order for example $1, $2...... $match_1 = $1; while ($match_1 =~ /<TD>(.*?)<\/TD>/gi) { print $1 . " "; } print "\n";}#data1 data2 data3#data4
上一篇:netdump
下一篇:look over hardware information
登录 注册