You don't want to match `.*`, but `[^?#]*`. Also, the dot in `dropbox.com` should be escaped.