I grabbed outlook's appointment description and got this string:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
ID: 123456<br>
Comments: blah blah
</body>
</html>
I need to get ID value 123456 and Comments value out with c# code. I can only use standard .NET library, that is, I can't use html agility pack. I did something like this:
var index = html.IndexOf("ID");
var IDindex = index + "ID".Length + 2 ;
var IDvalue = html.Substring( IDIndex,6);
But I like to do something more robust to handle for example ID length change.
` – Paul Abbott Dec 07 '17 at 20:02