CSharp examples for System.Text.RegularExpressions:Match Number
is Letter And Number by regex
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; } }