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);
阅读更多
文章标签: perl regex string
个人分类: Perl
上一篇Perl Regex: non-captured parentheses
下一篇Perl Regex: replace and assign
想对作者说点什么? 我来说一句

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

关闭
关闭
关闭