I have string like:
Student 12:00AMLeoPan Final points
<!--<div class='icon displayOn' ><span onclick=';' title=''></span></div>-->0.5
2.00<!--<div class='icon'><spanonclick='' title=''></span></div>-->
I want to replace string StartWith <!--<div
to end </div>-->
, and string  
to ""
values.
I tried with my code:
string finalResult = Regex.Replace(abc, "<!--<div" + ".*</div>--> ", "")
.Replace("<!--<div" + ".*</div>-->", "")
.Replace(" ", "");`
But Regex.Replace
can't replace.
How to remove this string? Thanks.
Updated 1:
Thanks, @Mark.
I tried with: .Replace("<!--<div" + ".*</div>-->", "")
.
And it remove all:
<!--<div class='icon displayOn' ><span onclick=';' title=''></span></div>-->0.5
2.00<!--<div class='icon'><spanonclick='' title=''></span></div>-->
.
Result only: Student 12:00AMLeoPan Final points
.
You can see I have two have start with: <!--<div
and end with: </div>-->
.
But it replaces all. And want final result to show like:
Student 12:00AMLeoPan Final points 0.5 2.00