title: Want to match both uppercase and lowercase letters
body: <p>My Code:</p>
  
  <p>I tried the following code</p>
  
  <pre><code>var str="I like green and want to build a GREENERY Earth with greening!"; 
  var n=str.match(/green/g);
  </code></pre>
  
  <p>It is giving the result as </p>
  
  <pre><code>green,green
  </code></pre>
  
  <p>But I need the result as</p>
  
  <pre><code>green,GREEN,green
  </code></pre>
  
  <p>That is, I want to match both uppercase and lowercase letters. In this case, totally 3 green words are found.</p>