title: javascript Regex question mark (?) not detect
body: <p>Hi all I tried to create some <code>regex</code> with random value.</p>
  
  <pre><code>var data = "demo purpose?";  **OR**  var data = "demo purpose";
  var sentence = "can I put these app as demo purpose?";
  var re = new RegExp("\\b(" + data + ")\\b", "g");
  console.log(sentence.match(re));   // output ["demo purpose"]
  </code></pre>
  
  <p>In variable <code>data</code> have two different value <code>demo purpose?</code> &amp; <code>demo purpose</code> with only question mark. Both console out are same please any one Give me hint what should i do in these case.</p>
  
  <p>-
  Thank you</p>