public static HasPattern ( string pattern, string input ) : System.Boolean | ||
pattern | string | The pattern to use. |
input | string | The input to check. |
Результат | System.Boolean |
public static Boolean HasPattern(string pattern, string input)
{
Regex regEx = new Regex(pattern);
return regEx.IsMatch(input);
}