title: Period can be matched but not used
body: <p>I am having a problem with a marker. I enter in a word with a period and it can match if it is in there (Example is <code>Filters.</code>) but when it goes through the mark function, it does not work. Here is the code: </p>
  
  <pre><code>function Search () {
  var Notes = document.getElementById("NoteHolder").innerHTML;
  var i = document.getElementById("Bar").value;
  var inputReOne = $.trim(i);
  var inp = inputReOne.replace(".", "\.")
      if ($.trim(inp) !== '') {
          var InpComp = inp.toUpperCase();
          var Ind = tags.indexOf(InpComp);
          if (Ind === -1) {
              var inpReg = new RegExp(inp, "im");
              var WordCheck = Notes.match(inpReg);
              alert(WordCheck)
              if(WordCheck !== null) {
              tags.push(InpComp);
              var SearchReq = new RegExp("\\b(" + inp + ")\\b", "gim");
              var after = Notes.replace(SearchReq, "&lt;mark class=" + ColorOptionReady + "&gt;$1&lt;/mark&gt;");
              document.getElementById("NoteHolder").innerHTML = after;
  }
  </code></pre>
  
  <p><code>WordCheck</code> matches <code>Filters.</code> but when it runs through the rest of the function, it doesn't add <code>&lt;mark class=ColorOptionReady (A variable)&gt;Filters.&lt;/mark&gt;</code></p>
  
  <p>It just leaves it with no mark tags. Any suggestions?</p>