예제 #1
0
        public Match Match(string text)
        {
            var match = _regexp.Match(text);

            if (match.Success)
            {
                var grokMatch = new Match(text, match.Index, this, _regexp, match);
                Log.DebugFormat("Regexp match object, names: {0}, captures: {1}", _regexp.GetGroupNames(), match.Groups);
                return(grokMatch);
            }

            return(null);
        }
예제 #2
0
파일: Grok.cs 프로젝트: hendryluk/nGrok
        public Match Match(string text)
        {
            var match = _regexp.Match(text);

            if (match.Success)
            {
                var grokMatch = new Match(text, match.Index, this, _regexp, match);
                Log.DebugFormat("Regexp match object, names: {0}, captures: {1}", _regexp.GetGroupNames(), match.Groups);
                return grokMatch;
            }

            return null;
        }