示例#1
0
        public static string Search(string regex, string source, out int position)
        {
            MatchCollection matchCollection = ParserCss.Match(regex, source);

            if (matchCollection.Count > 0)
            {
                position = matchCollection[0].Index;
                return(matchCollection[0].Value);
            }
            position = -1;
            return((string)null);
        }
示例#2
0
        public static string Search(string regex, string source)
        {
            int position;

            return(ParserCss.Search(regex, source, out position));
        }