2012-03-24 9 views

答えて

2
// first find the index of your starting point 
int start = body.IndexOf("<img"); 
// then find the index of your ending point 
int end = body.IndexOf("\"", start); 
// then retrieve that portion of the string 
string goods = body.Substring(start, end - start); 
1
string body = body.Substring(0, body.IndexOf("<img")); 
関連する問題