is Letter And Number by regex - CSharp System.Text.RegularExpressions

CSharp examples for System.Text.RegularExpressions:Match Number

Description

is Letter And Number by regex

Demo Code


using System.Text.RegularExpressions;
using System;/* www  .  j a va2s . c o  m*/

public class Main{
        public static bool isLetterAndNumber(string argString)//????
        {
            bool flag = false;
            string argObject = argString;
            if (!Tool.isEmpty(argObject))
            {
                flag = new Regex("[^a-zA-Z0-9]").IsMatch(argObject);
            }
            return !flag;
        }
}

Related Tutorials