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"; }
阅读更多
想对作者说点什么?

博主推荐

换一批

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