我今天试过了,不能够抽取出来。
我的正则表达式:/^[chr(0xa1-chr(0xff)]+$/

解决方案 »

  1.   

    public string test(string content)
    {
       Regex regex=new Regex("[\u4e00-\u9fa5]+");
       string str="";
       foreach(Match m in Regex.Matches(content))
       {
         str+=m.Value;
       }
       return str;
    }
      

  2.   

    try
    Regex r= new Regex(@"^[\u4e00-\u9fa5]+$");
      

  3.   

    public string test(string content)
    {
       Regex regex=new Regex("[\u4e00-\u9fa5]+");
       string str="";
       foreach(Match m in regex.Matches(content))
       {
         str+=m.Value;
       }
       return str;
    }
    经过我的测试,这个代码可以。真实高手呀!