我想匹配后面只要不是x和.net的asp.
如:asp.netaspxaspaspyu只需要匹配aspyu和asp这样的正则,我弄了老会,也没弄出来,大家帮忙啊
负向预查:
- <script type="text/javascript"> var arr = "asp.net aspx asp aspyu asp.ne aspxx".split(" "); for(var i = 0 ; i < arr.length ; i ++){ if (/asp(?!x|\.net)/i.test(arr[i]))alert(arr[i]) } </script>