using System.Text.RegularExpressions; namespace Alchemy.Core.Services { public class RegexService { /// /// 判断正则表达式 /// /// /// /// public static bool IsMatch(string strRaw, string strFormat) { Regex regex = new Regex(strFormat, RegexOptions.None); return regex.IsMatch(strRaw); } } }