C 使用正则表达式判断字符串是否由英文或数字组成

               
//正则判断帐号是否由字母和数字组成;        System.Text.RegularExpressions.Regex reg = new System.Text.RegularExpressions.Regex(@"^[A-Za-z0-9]+$");        if (!reg.IsMatch(accountStr))        {            SNKDebuger.Log("accountStr=" + accountStr + "is not valid");            return;        }

转自http://blog.csdn.net/huutu http://www.thisisgame.com.cn 星环游戏


转自:

http://blog.csdn.net/zhrtzc/article/details/6030216

转自http://blog.csdn.net/huutu http://www.thisisgame.com.cn 星环游戏
           

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

猜你喜欢

转载自blog.csdn.net/qq_43667944/article/details/87612584