title: Javascript match() string letters which are indicated on regular expression of match
body: <p>I have a variable which contain a string and I want to return only the letters from regular expression (“b” <strong>and</strong> “D”) or any letter that I indicate on regular expression from match().</p>
  
  <pre><code>var kk = "AaBbCcDd".match(/b|D/g); 
       kk.forEach(function(value,index){
       console.log(value,index) 
  });
  </code></pre>
  
  <p>My problem is that regular expression I think because is returning b and D but the index is not the index from <code>kk</code> variable and I'm not really sure, why ... so if someone can help me a little bit because I stuck</p>