[Solved] How to get data between certain quotes


Oh, come on.

string s = "<script type=\"text/javascript\" src=\"/stepcarousel.js\"></script>";
int startIndex = s.IndexOf("src=\"") + "src=\"".Length;
int endIndex = s.IndexOf("\"", startIndex);
string src = s.Substring(startIndex, endIndex - startIndex);

1

solved How to get data between certain quotes