Perl Regex: lookahead & lookforeword matching

___FCKpd___0
= "tom cat"; if ( /tom(?=cat)/ ) { print "find tom, follow by cat/n"; } if ( /(?!tom)cat/ ) { print "find cat, and tom is in front of 'cat'/n"; }
阅读更多
文章标签: regex perl
个人分类: Perl
想对作者说点什么? 我来说一句

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

关闭
关闭
关闭