首页 > 其他 > 详细

常用正则表达式

时间:2015-05-09 11:30:21      阅读:184      评论:0      收藏:0      [点我收藏+]

1、判断在字符在字符串,有没有值。

    public bool isExists(string str)
    {
        if (str != "")
        {
            return Regex.Match(str, "[a-eA-E]").Success;
        }
        else
        {
            return true;
        }

    }

  

 

常用正则表达式

原文:http://www.cnblogs.com/chenmfly/p/4489437.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!