Need help... of course

-using c# HTMLAgilityPack

The value I want isn't accessible. Using regex to grab it. Here is what I am able to grab using HTMLAgilityPack: http://pastebin.com/qSrCJSPC

I'm trying to get what's between the <span> and <div class.

Here is the set-up.

                    string search1 = "<span>";
                //End search values
                string serach2 = "<div";
                //Grab the values
                Regex regex = new Regex(search1 + "(.*?)" + serach2);
                var second = regex.Match(inner.ToString()).Groups[1];

Posted Feb 25, 2016, 12:42 AM UTC · edited

14
Loading comments…