我試圖將任意深度的路徑中的最后一個斜杠與路徑的末尾相匹配。我如何調整這個以便示例一匹配?([^/]+[.html]?)/?\?https://www.somedomain/path/some-slug-94690(不匹配)https://www.somedomain.com/one/somepath/another-slug?test(another-slug )https://www.anotherdomain.com/somepath/another-slug/?test(another-slug)https://www.anotherdomain.com/path/another_slug.html?test=true(another-slug)https://regex101.com/r/bFz9mw/1
- 0 回答
- 0 關注
- 128 瀏覽
添加回答
舉報
0/150
提交
取消