[Solved] How to get data between certain quotes

[ad_1]

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

[ad_2]

solved How to get data between certain quotes