我需要一个regex来匹配所有包含(允许扩展)的URL(底部是regex)。
它还应包括以下网址:
包含查询参数:
example.com/file.pdf?cb=1625595
和OR
包含数字(#)符号:
example.com/myfile.pdf?cb=1625595#page=4
example.com/myfile.pdf#page=4
例如:
example.com NO MATCH
example.com/file.pdf?cb=1625595 MATCH
example.com/SLmj24.msp MATCH
example.com/Disclosure.pdf?cb=