Perl Regex: usage of non capturing, (more powerful split)

 = ;
Data::Dumper;


___FCKpd___0
= '12a34b5'; print "string = ".
___FCKpd___0
."/n"; @num = split /(a|b)/; print "capturing/n"; print Dumper(/@num); print "/n"; @num = split /(?:a|b)/; print "non capturing/n"; print Dumper(/@num);
阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页