posts - 124,  comments - 29,  trackbacks - 0

using System.Text.RegularExpressions;

 private bool isContainCh(string s)
        
{
            Regex r4 
= new Regex(@"^[\u4e00-\u9fa5]+$");
            
int len = s.Length;
            
for (int i = 0; i < len - 1; i++)
            
{
                
string str = s.Substring(i, 1);
                
if (r4.IsMatch(str))
                
{
                    
return true;
                    
                }

            }

            
return false;
        }
posted on 2010-01-12 09:29 天书 阅读(441) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理



<2010年1月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

常用链接

留言簿(5)

随笔档案

文章分类

文章档案

好友的Bolg

搜索

  •  

最新评论

阅读排行榜

评论排行榜