title: Check if String Contains Number from List, Remove that Number from String
body: <p>I want to check if a string contains a word or number from a list and remove it from the string.</p>
  
  <p>I want to do this for multiple matches found.</p>
  
  <hr>
  
  <p>The sentence reads</p>
  
  <blockquote>
    <p>This is a 01 02 03 (01) (02) (03) no01 no02 no03 test</p>
  </blockquote>
  
  <hr>
  
  <p>I need the <code>Regex.Replace</code> to remove only the full <code>01</code>, <code>02</code>, <code>03</code>, not the ones inside other words.</p>
  
  <blockquote>
    <p>This is a (01) (02) (03) no01 no02 no03 test</p>
  </blockquote>
  
  <hr>
  
  <p>But it only removes the occurrences of 03, the last item in the match list, in all places.</p>
  
  <blockquote>
    <p>This is a 01 02  (01) (02) () no01 no02 no test</p>
  </blockquote>
  
  <hr>
  
  <p><a href="http://rextester.com/BCEXTJ37204" rel="nofollow noreferrer">http://rextester.com/BCEXTJ37204</a></p>
  
  <p><strong>C#</strong></p>
  
  <pre><code>List&lt;string&gt; filters = new List&lt;string&gt;();
  List&lt;string&gt; matches = new List&lt;string&gt;();
  
  string sentence = "This is a 01 02 03 (01) (02) (03) no01 no02 no03 test";
  string newSentence = string.Empty;
  
  // Create Filters List
  for (int i = 0; i &lt; 101; i++)
  {
      filters.Add(string.Format("{0:00}", i)); // 01-100
  }
  
  // Find Matches
  for (int i = 0; i &lt; filters.Count; i++)
  {
      // Add to Matches List
      if (sentence.Contains(filters[i]))
      {
          matches.Add(filters[i]); // will be 01, 02, 03
      }
  }
  
  // Filter Sentence
  for (int i = 0; i &lt; matches.Count; i++)
  {
      newSentence = Regex.Replace(sentence, matches[i], "", RegexOptions.IgnoreCase);
  }
  
  // Display New Sentence
  Console.WriteLine(newSentence);
  </code></pre>
  
  <p>I tried changing <code>string.Format()</code> to <code>@"\b{0:00}\b"</code> to match whole words but it doesn't work.</p>