using System.Text.RegularExpressions; ……省略…… bool result = Regex.IsMatch("{検査対象文字列}", "{正規表現パターン}");
using System.Text.RegularExpressions; ……省略…… var rx = new Regex("{正規表現パターン}", RegexOptions.Compiled); bool result = rx.IsMatch("{検査対象文字列}" );