^\/(?P<__url_path__>.[^?]*)\??(?P<__url_query__>.*)
https://www.regexplanet.com/share/index.html?share=yyyypt6kb0r