title: Get exact match of the word using Regex in C#
body: <p>I need to match exact word from given text using Regex.</p>
  
  <p>Following is the code,</p>
  
  <pre><code>var matchterm = "VO";
  var pattern = "\\b(" + matchterm + ")\\b";
  var text = "FOR OVER FIFTY YEARS WATER FUTURE VOA VO&gt;&gt; VO";
  var regx = new Regex(pattern,RegexOptions.IgnoreCase);
  var collection = regx.Matches(text);
  </code></pre>
  
  <p>Here i am trying to get exact "VO" (not from VOA or VO>>) from the text.Issue is along with correct match,i am also getting "VO" from "VO>>" which i don't want.Please help.</p>