84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
求php正则表达式,不能以字符串abc或xyz结尾如果是单个,不能以字符串abc结尾应该是:([^abc]$/i)吧?
([^abc]$/i)
/^(?!.*abc$)(?!.*xyz$)/
[]这个结构的意思是里面的元素都是每个小分支呀所以题主所说的[^abc]$/i是不严格的,比如,
[]
[^abc]$/i
/[^abc]$/i.test("xxxab"); //false 实际上你希望得到true
/.*?[^(abc|xyz)]$/i
/^(?!.*abc$)(?!.*xyz$)/
[]
这个结构的意思是里面的元素都是每个小分支呀所以题主所说的
[^abc]$/i
是不严格的,比如,