title: Regex Capture Groups to Upper Case
body: <p>If I'm using this code to make words bold how do I go about also making them uppercase?</p>
  
  <pre><code>var vow = "Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post. I am the sword in the darkness. I am the watcher on the walls. I am the shield that guards the realms of men. I pledge my life and honor to the Night's Watch, for this night and all the nights to come.";
  
  var wordsToBold=["night","watcher"];
  
  function makeBold(input, wordsToBold) {
  return input.replace(new RegExp('(\\b)(' + wordsToBold.join('|') + ')(\\b)','ig'), '$1&lt;b&gt;$2&lt;/b&gt;$3');
  }
  
  document.getElementById("vow_p").innerHTML = makeBold(vow, wordsToBold);
  </code></pre>