added pattern matching to snarf doi from query strings