System.Text.RegularExpressions.Match.NextMatch C# (CSharp) Method

NextMatch() public method

public NextMatch ( ) : System.Text.RegularExpressions.Match
return System.Text.RegularExpressions.Match
        public System.Text.RegularExpressions.Match NextMatch()
        {
            throw null;
        }

Usage Example

Esempio n. 1
0
        private void fun_unknown()
        {
            string str = @"https://lbs.gtimg.com/maplbs/qianxi/00000000/37010006.js";

            WebClientto client = new WebClientto(4500);

            client.Encoding = Encoding.UTF8;
            client.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

            Stream stream   = null;
            string str_json = null;

            stream = client.OpenRead(str);

            str_json = new StreamReader(stream).ReadToEnd();

            Regex regexObj = new Regex(@"\[(?<result>)[^[\]]+\]");

            System.Text.RegularExpressions.Match matchResult = regexObj.Match(str_json);
            while (matchResult.Success)
            {
                MessageBox.Show(matchResult.Groups[0].Value);
                matchResult = matchResult.NextMatch();
            }
        }
All Usage Examples Of System.Text.RegularExpressions.Match::NextMatch