WikiFunctions.Tools.RegexMatchCount C# (CSharp) Method

RegexMatchCount() public static method

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
return 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