title: \B not working as expected in regex
body: <p><code>/\Bon/</code> matches "on" in "at noon", and <code>/ye\B/</code> matches "ye" in "possibly yesterday".
  Why does this happen?</p>
  
  <p>As According to the following question 
  <a href="https://stackoverflow.com/a/6664167/6575810">https://stackoverflow.com/a/6664167/6575810</a></p>
  
  <p>As it says </p>
  
  <blockquote>
    <p><code>\B</code> is a zero-width non-word boundary. Specifically:</p>
    
    <p>Matches at the position between two word characters (i.e the position
    between <code>\w\w</code>) as well as at the position between two non-word
    characters (i.e. <code>\W\W</code>).</p>
  </blockquote>
  
  <p>It should not.
  Am I missing anything here ?</p>
  
  <p>Also see my comment on trott's Answer
  <a href="https://stackoverflow.com/a/46439352/6575810">https://stackoverflow.com/a/46439352/6575810</a></p>