title: replace string using array in javascript
body: <pre><code>abc1    abc2    abc3
  abc4    abc5    abc6
  abc7    abc8    abc9
  </code></pre>
  
  <p>using above csv file, load text by replacing the double quotes from the bellow sentence.
  Sentence:</p>
  
  <pre><code>"" is going with "" to "" for something to know.
  </code></pre>
  
  <p>Expected out put is:</p>
  
  <pre><code>abc1 is going with abc2 to abc3 for something to know.
  abc3 is going with abc5 to abc6 for something to know.
  </code></pre>
  
  <p>like this in javascript, php.</p>
  
  <p>Code I have tried so far:</p>
  
  <pre><code>var s = 'Neque porro "" estqui "" dolorem';
  var insert = [["a1", "b1"]["c1","d1"]];
  console.log(insert);
  var words = new Array();
  words = s.split(" ");
  console.log(words);
  var count = 0;
  for (i = 0; i &lt; words.length; i++) {
      for (j = 0; j &lt; insert.length; j++) {
          if(words[i] == '""')
              s = s.replace(/""/, insert[j]);
      }
  }
  console.log(s);
  </code></pre>