I want to use a regular expression to confirm if a URL that includes query parameters only includes a single ?. So far, I have a pattern of "^http.*?\?[^\?]+", which sort of works, but fails to apply to the entire match string. For example, with " pattern will be found, matching entire string. However, pattern will also be found with " matching up to and not including second "?". I tried including a end-of-string anchor ("^http.*?\?[^\?]+$"), but both variations still match. Any thoughts on how to do this?