/(^.*"(?:(?:https?|ftp|file):\/\/)?(?:www.|)domain.com(?:\/[-a-z\d_.]+)*)(\?[^"]*|)(".*$)/i
https://www.regexplanet.com/share/index.html?share=3ghc