case solved



I've just found out why this didn't work. My mistake... the reason if
(line.Contains("</table>" )) didn't work, was because there is another
if-statement above this and that if statement wasn't true... so I've solved
it.



"Jeff" <no_email_address> wrote in message
news:Odppn5rgIHA.5824@xxxxxxxxxxxxxxxxxxxxxxx
Hey

.NET 3.5

I'm trying to search a string to determine if the string contains
</table>, but string.Contains don't find it. I've used
WebRequest/WebReponse to retrieve the html from a webpage and now I'm
searching through this html... this webpage contains 4 html tables. so
there are 4 </table>, but my code don't find any...

Here is part of my code, this if-statment don't get true...
string line;
if (line.Contains(" </table>" ))
{
boolean = false;
}

any suggestions?



.



Relevant Pages

  • HTML::TokeParser and Matching
    ... I have a webpage where I need to look for the string 'Matches: ... The html is not that well structured, so I am having some difficulties parsing the right part. ... If the match is not zero, I want to grab the remaining text. ...
    (comp.lang.perl.misc)
  • Re: problem with string.Contains()
    ... or you could use regular expressions. ... I'm trying to search a string to determine if the string contains, ... retrieve the html from a webpage and now I'm searching through this html... ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: getAttribute question
    ... oddity with IE that getAttributereturns an empty string if the ... HTML specification, ... appropriate places in the HTML 4 and DOM HTML specifications. ...
    (comp.lang.javascript)
  • Re: [PHP] generating an html intro text ...
    ... You would have to search out and pull in all closing tags. ... grab 256 characters -- The string. ... html markup should not go towards the string length count, ...
    (php.general)
  • [perl-python] 20050127 traverse a dir
    ... suppose you want to walk into a directory, say, to apply a string ... replacement to all html files. ... So, when ever myfun is called, we need to loop thru the ... # with a recursive "filter" ...
    (comp.lang.perl.misc)