public static RegexMatchCount ( |
||
regex | Regex to try and match input against | |
input | string | Input string to search for matches |
Результат | int |
public static int RegexMatchCount(Regex regex, string input)
{
return regex.Matches(input).Count;
}
Tools::RegexMatchCount ( string regex, string input ) : int | |
Tools::RegexMatchCount ( string regex, string input, RegexOptions opts ) : int |