title: Remove words from string c#
body: <p>I am working on a ASP.NET 4.0 web application, the main goal for it to do is go to the URL in the <code>MyURL</code> variable then read it from top to bottom, search for all lines that start with "description" and only keep those while removing all HTML tags. What I want to do next is remove the "description" text from the results afterwords so I have just my device names left. How would I do this? </p>
  
  <pre><code>protected void parseButton_Click(object sender, EventArgs e)
      {
          MyURL = deviceCombo.Text;
          WebRequest objRequest = HttpWebRequest.Create(MyURL);
          objRequest.Credentials = CredentialCache.DefaultCredentials;
          using (StreamReader objReader = new StreamReader(objRequest.GetResponse().GetResponseStream()))
          {
              originalText.Text = objReader.ReadToEnd();
          }
  
          //Read all lines of file
          String[] crString = { "&lt;BR&gt;&amp;nbsp;" };
          String[] aLines = originalText.Text.Split(crString, StringSplitOptions.RemoveEmptyEntries);
  
          String noHtml = String.Empty;
  
          for (int x = 0; x &lt; aLines.Length; x++)
          {
              if (aLines[x].Contains(filterCombo.SelectedValue))
              {
                  noHtml += (RemoveHTML(aLines[x]) + "\r\n");
  
              }
          }
          //Print results to textbox
          resultsBox.Text = String.Join(Environment.NewLine, noHtml);
      }
      public static string RemoveHTML(string text)
      {
          text = text.Replace("&amp;nbsp;", " ").Replace("&lt;br&gt;", "\n");
          var oRegEx = new System.Text.RegularExpressions.Regex("&lt;[^&gt;]+&gt;");
          return oRegEx.Replace(text, string.Empty);
      }
  </code></pre>