WikiFunctions.Tools.RegexMatchCount C# (CSharp) Метод

RegexMatchCount() публичный статический Метод

Get the number of times the regex matches the input string
public static RegexMatchCount ( Regex regex, string input ) : int
regex System.Text.RegularExpressions.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;
        }

Same methods

Tools::RegexMatchCount ( string regex, string input ) : int
Tools::RegexMatchCount ( string regex, string input, RegexOptions opts ) : int
Tools