title: How to add white space in regular expression in Javascript
body: <p>I have a string <code>{{my name}}</code> and i want to add white space in regular expression</p>
  
  <pre><code>var str = "{{my name}}";
  
  var patt1 = /\{{\w{1,}\}}/gi; 
  
  var result = str.match(patt1);
  
  console.log(result);
  </code></pre>
  
  <p>But result in not match.</p>
  
  <p>Any solution for this.</p>