title: Highlight a list of words using a regular expression in c#
body: <p>I have some site content that contains abbreviations. I have a list of recognised abbreviations for the site, along with their explanations. I want to create a regular expression which will allow me to replace all of the recognised abbreviations found in the content with some markup.</p>
  
  <p>For example:</p>
  
  <p>content: <pre>This is just a little test of the memb to see if it gets picked up. 
  Deb of course should also be caught here.</pre></p>
  
  <p>abbreviations: <pre>memb = Member; deb = Debut; </pre></p>
  
  <p>result: <pre>This is just a little test of the [a title="Member"]memb[/a] to see if it gets picked up. 
  [a title="Debut"]Deb[/a] of course should also be caught here.</pre></p>
  
  <p>(This is just example markup for simplicity).</p>
  
  <p>Thanks.</p>
  
  <p>EDIT:</p>
  
  <p>CraigD's answer is nearly there, but there are issues. I only want to match whole words. I also want to keep the correct capitalisation of each word replaced, so that deb is still deb, and Deb is still Deb as per the original text. For example, this input:</p>
  
  <pre>
  This is just a little test of the memb. 
  And another memb, but not amemba. 
  Deb of course should also be caught here.deb!
  </pre>