正則表達式:不能包含某些特殊字符串

# 正則
/^((?!list|news|index).)*$/.test('list0')

 

轉載於:https://www.cnblogs.com/kjcy8/p/10773060.htmlhtml