from the debugger in my line of arrays I get this
"/ mercedes-benz / 190-class / 1993 /" class = "canonicalLink" data-qstring = "? sub = sedan"> 1993
I want to split the text after each '/' and get it in the string [], here is my effort
Queue<string> see = new Queue<string>(); //char[] a = {'\n '}; List<car_facts> car_fact_list = new List<car_facts>(); string[] car_detail; foreach (string s in car) { MatchCollection match = Regex.Matches(s, @"<a href=(.+?)</a>", RegexOptions.IgnoreCase); // Here we check the Match instance. foreach(Match mm in match) { // Finally, we get the Group value and display it. string key = mm.Groups[1].Value; //key.TrimStart('"'); //key.Trim('"'); key.Trim(); **car_detail = Regex.Split(key, "//");**//I tried with strin.Split as well and tried many combination of seperator , see.Enqueue(key); }
}
In car_detail [0] I get this "$ [link]"> $ [title]
from this line "/ mercedes-benz / 190-class / 1993 /" class = "canonicalLink" data-qstring = "? sub = sedan"> 1993
source share