标签:negative-lookahead
-
使否定的前瞻不区分大小写 - php
我有以下表达: $exp = "/^(?!.*?that).*$/"; 旨在匹配不包含“ that”的任何行。 我有以下三句话: $str = array( "I like this sentence.", #line1 "I like that sentence.", #line2 "I […]
我有以下表达: $exp = "/^(?!.*?that).*$/"; 旨在匹配不包含“ that”的任何行。 我有以下三句话: $str = array( "I like this sentence.", #line1 "I like that sentence.", #line2 "I […]