鑑於三個URL之前和主要表達後排除:正則表達式 - 串兩者
http://stackoverflow.com/questionsss/3003310
- >真http://stackoverflow.com/questionsss/3003310?s=1
- >假(S = 1實測值)http://stackoverflow.com/questionsss?s=1&N=3003310
- >假(S = 1找到)
如何在JS中編寫正則表達式,如果在URL中找到3003310,則返回true;如果在URL中找到s = 1,則返回false。
謝謝!
感謝數百萬。它充當魅力。 – PeterPan