title: javascript regex ... how to escape hyphen
body: <p>how to escape a hyphen in a replace statement</p>
  
  <pre><code>var lvs = "ui-btn ui-btn-up-XXX  ui-li ui-li-has-icon ui-btn-hover-e ui-btn-up-ZZZ" ;
  
  var lvs = lvs.replace(/\bui-btn-up-[^\b]*?\b/gi , "" ) ;
  alert( lvs);
  </code></pre>
  
  <p>I have tried many variations of forwards and backwards slashes</p>