Alphashack.Graphdat.Agent.SqlQueryHelper.Parser.Matches C# (CSharp) Method

Matches() public method

public Matches ( string subject, string regex, RegexOption option = DefaultOption ) : int
subject string
regex string
option RegexOption
return int
        public int Matches(string subject, string regex, RegexOption option = DefaultOption)
        {
            var r = new Regex(regex, option);
            var match = r.Execute(subject);
            if (match.Success)
                return match.Groups[0].Start;
            return -1;
        }