title: Replace matching word using javascript
body: <p>I need a Regex to replace only whole word.</p>
  
  <p>I able to reach here.</p>
  
  <p><strong>Example</strong></p>
  
  <pre><code>var test = "abc.com abc.com/help abc.com";
  var content = "abc.com";
  var replaceContent = "xyz";
  var replaceRegexp = new RegExp("\\b" +content+ "\\b","g");
  test.replace(replaceRegexp,replaceContent);
  </code></pre>
  
  <p>Getting outupt <code>xyz xyz/help xyz</code></p>
  
  <p>But i want output <code>xyz abc.com/help xyz</code>.</p>