Perl Regex: lookahead & lookforeword matching

    技术2022-05-11  119

    #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"; }

    最新回复(0)