I have this paragraph inside my lotHtmlOriginal.Text
waters71 </strong></p>
<p><strong>websitesss.com/sblogin/login.shtml/</strong><br />
<strong>1234213:123123</strong><br />
<strong>213123:12312</strong><br />
<strong>4213:196028</strong><br />
<strong>32131:43423</strong><br />
<strong>4444444:96980507</strong></p>
<p><strong>htt
I issue is that when I make the second part of substring </p>, the code fails because substring is not able to find it, but when I change it to certain things, it works.
It does not work when I change it too...
- htt
- tron
- p
</strong>
This is my code
String St = lotHTMLOriginal.Text; ;
String firstPart = "blogin/login.shtml/</strong>";
String lastPart = "</p>";
int pFrom = St.IndexOf(firstPart) + firstPart.Length;
int pTo = St.IndexOf(lastPart);
String result = St.Substring(pFrom, pTo - pFrom);
lotHTML.Text = result;
And just in case it's not clear, I'm trying to get everything between blogin/login.shtml/</strong> and </p>
blogin/login.shtml/</strong>and</p>firstPart?