Consider the this is in Mytext of string type variable
now
Mytext.Substring(Mytext.indexof("totalResults="),7);
//the function indexof will return the point wheres the value start, //and 7 is a length of charactors that you want to extract
I am using similar of this ........