Regex regex = new Regex(@"first name is (?\w*).*second name is (?\w*)", RegexOptions.IgnoreCase);