title: Detecting a word followed by a dot or whitespace using regex
body: <p>I am using <code>regex</code> and <code>C#</code> to find occurrences of a particular word  using </p>
  
  <pre><code>Regex regex = new Regex(@"\b" + word + @"\b");
  </code></pre>
  
  <p>How can I modify my Regex to only detect the word if it is either preceded with a whitespace, followed with a whitespace or followed with a dot?</p>
  
  <p>Examples:</p>
  
  <p>this.Button.Value - should match
  this.value - should match</p>
  
  <p>document.thisButton.Value - should not match</p>