I have this string from which I want to remove the Hosting html part.
string r = @"2014-09-18 20:59:53|
<!-- Hosting24 Analytics Code -->
<script type=""text/javascript"" src=""http://stats.hosting24.com/count.php""></script>
<!-- End Of Analytics Code -->";
But
r = r.Replace(
@"<!-- Hosting24 Analytics Code -->
<script type=""text/javascript"" src=""http://stats.hosting24.com/count.php""></script>
<!-- End Of Analytics Code -->","");
Is not working. I get the same annoying original string.This has been driving me crazy
string date = r.Split('|').First();