2015-07-21 43 views

回答

3

负面超前是你的朋友foo(?!pattern)意味着foo将不匹配如果 foo后立即匹配。像其他概念一样,负向预测不是捕获组。

/\/example\/(?!create|add)[A-Za-z0-9]+/ 
相关问题