我试图将任意深度的路径中的最后一个斜杠与路径的末尾相匹配。我如何调整这个以便示例一匹配?
([^/]+[.html]?)/?\?
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
相关分类