阅读背景:

将这两个正则表达式组合成一个

来源:互联网 

I have the following in C#:

我有以下的c#:

public static bool IsAlphaAndNumeric(string s)
{
    return Regex.IsMatch(s, @"[a-zA-Z]+") 
        && Regex.IsMatch(s, @"\d+");
}
public



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: