#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"; }
Perl Regex: lookahead & lookforeword matching
最新推荐文章于 2021-07-15 21:17:05 发布