title: Regex for matching full word starting with # (Javascript)
body: <p>I want to match a separate word which starts with # character.</p>
  
  <pre><code>enter #code here - #code
  some#string here - nothing
  #test - #test
  </code></pre>
  
  <p>I came up with following regex:</p>
  
  <pre><code>   "enter #code here".replace(/\b#[\w]*/gi, "REPLACED") 
  </code></pre>
  
  <p>But it doesn't work. After some testing i found that </p>
  
  <pre><code>   "enter #code here".replace(/#\b[\w]*/gi, "REPLACED") 
  </code></pre>
  
  <p>works just fine.</p>
  
  <p>Now can someone explain why \b# part is incorrect in this case?</p>
  
  <p>Thanks! </p>