public RegexpQuery(string regex) { if (string.IsNullOrWhiteSpace(regex)) { throw new ArgumentNullException("regex"); } _regex = regex; }