我想寫一個JavaScript正則表達式來匹配其中包含單詞-booker的URL。正則表達式匹配基於單詞的URL
網址是一般般:
http://domain.local/htmlforms/mforms/product1-booker.html
http://domain.local/htmlforms/mforms/product2-booker.html
http://domain.local/htmlforms/mforms/product3.html
http://domain.local/htmlforms/mforms/product4.html
謝謝。
你有試過什麼嗎?從這裏開始閱讀正則表達式: - http://stackoverflow.com/questions/4736/learning-regular-expressions – rock321987