Remove word that ends with a period : <p>I'm trying to use regex to remove a word that ends with a period.</p>

<p>I want to only remove <code>Ep.</code> as a whole word, but not if it's part of another word.</p>

<p>Also I will use <code>RegexOptions.IgnoreCase</code>.</p>

<hr>

<blockquote>
  <p>This Ep. is 01. TestEp.01Test.</p>
</blockquote>

<p>Should be:</p>

<blockquote>
  <p>This is 01. TestEp.01Test.</p>
</blockquote>

<hr>

<p>I thought it should be <code>\b(Ep\.)\b</code> but it doesn't work.</p>

<p><a href="https://regex101.com/r/QcOiMR/2/" rel="nofollow noreferrer">https://regex101.com/r/QcOiMR/2/</a></p>

<hr>

<p>I have tried <a href="https://stackoverflow.com/a/5696940/6806643">https://stackoverflow.com/a/5696940/6806643</a></p>
