Is it possible to loop through a textbox's contents? If not, what's the best strategy to read line-by-line?
<p>I am designing a crawler which will get certain content from a webpage (using either string manipulation or regex).</p>

<p>I'm able to get the contents of the webpage as a response stream (using the whole httpwebrequest thing), and then for testing/dev purposes, I write the stream content to a multi-line textbox in my ASP.NET webpage.</p>

<p>Is it possible for me to loop through the content of the textbox and then say "If textbox1.text.contains (or save the textbox text as a string variable), a certain string then increment a count". The problem with the textbox is the string loses formatting, so it's in one long line with no line breaking. Can that be changed?</p>

<p>I'd like to do this rather than write the content to a file because writing to a file means I would have to handle all sorts of external issues. Of course, if this is the only way, then so be it. If I do have to write to a file, then what's the best strategy to loop through each and every line (I'm a little overwhelmed and thus confused as there's many logical and language methods to use), looking for a condition? So if I want to look for the string "Hello", in the following text:</p>

<p>My name is xyz
I am xyz years of age
Hello blah blah blah
Bye</p>

<p>When I reach hello I want to increment an integer variable.</p>

<p>Thanks,</p>
