Combining these two Regular Expressions into one

前端 未结 6 1712
眼角桃花
眼角桃花 2020-12-16 17:38

I have the following in C#:

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


        
6条回答
提交回复
热议问题