Regex rx = new Regex(@"\b(?<word>\])\b",
              RegexOptions.Compiled | RegexOptions.IgnoreCase);            string text = "]";            // Find matches.
            MatchCollection matches = rx.Matches(text);            foreach (Match match in matches)
            {
                GroupCollection groups = match.Groups;
                Console.WriteLine("{0}", groups["word"].Value);
            }
            Console.ReadLine();
我想获取特殊字符[]{}等等,所以用转义符来后获取,可是获取后是空白的,请前辈帮我看看,谢谢