Ejemplo n.º 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);
        }