C#正規表現を使用して文字列が英語または数値で構成されているかどうかを判断

588 ワード

//                ;
        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 スターリングゲーム