title: How to remove *| at start and |* at end of string
body: <p>I am having trouble creating a regex that matches <code>*|VALUE|*</code></p>
  
  <p>I want to remove <code>*|</code> and <code>|*</code> but the regex i use only detects <code>*|</code></p>
  
  <pre><code>str = *|VALUE|*
  str.replace(/(^\*\||\|\*$)/, '') // VALUE|*
  </code></pre>
  
  <p>The OR operator does not seem to trigger.</p>