title: How to check if words in a list match words in a string
body: <p>I have a list of words which are in a list of string</p>
  <pre><code>List&lt;String&gt; badWords = [
    &quot;bad&quot;, 
    &quot;damn&quot;,
    //and other list of offensive words too
  ];
  </code></pre>
  <p>Now if I have a string which is gotten from the user through input, I want to loop through the list and check if any of those words match any word on the string maybe by using regex eg</p>
  <pre><code>String text = msgController.text;
  badWords.map((e) {
    //If any the words in the text matches any of the words in the list then print those words out
  }).toList();
  </code></pre>