Hi,
I think you need remove html tags from your string, If I am correct then I describe it as below link...
remove-html-tags-from-string-c#.net-asp.net[
^]
If your content
string mytext = "<div style="float:left; removed:absolute">Some Text with absolute value.</div>";
call my function as describe above link...
string Input = replace(mytext );
now you need to check
string search = "absolute";
int length = search.Length;
int howmanytimes = Input.Length - length;
int result = 0;
for (int index = 0; index < howmanytimes; index++)
{
string theSubString = Input.Substring(index, length);
if (theSubString.ToLower() == search.ToLower())
{
result++;
}
}
//Result is... result =1
//AND if search term is
string search = "left"
then result = 0
Thanks
Asp.Net/C#.Net Help[
^]
Hemant Singh