title: What's the best way to parse a string for "bad" words in C#?
body: <p>I'm thinking of something like:</p>
  
  <pre><code>foreach (var word in paragraph.split(' ')) {
    if (badWordArray.Contains(word) {
      // do something about it
    }
  }
  </code></pre>
  
  <p>but I'm sure there's a better way.</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>UPDATE</strong>
  I'm not looking to remove obscenities automatically... for my web app, I want to be notified if a word I deem "bad" is used. Then I'll review it myself to make sure it's legit. An auto flagging system of sorts.</p>