added a regex to pull out results from the ? queries