title: Replace several strings in text with javascript- how to add more varables
body: <p>I'm using a Javascript to to replace/remove two words in a string of text. However, I need to add a few more words, and instead of duplicate the script like i have done in the example, how do I add more words to the first query? </p>
  
  <p>Im also wondering if its possible to remove a certain string with spaces between? Say i want to remove if it´s exactly this words"- French keyboard" but keep them if it´s "Microsoft French keyboard" for an example. Can I target an array of exact words? </p>
  
  <p>I'm aware of the amount of topics on this, but I couldn't find any that I could figure out. </p>
  
  <p>The script: </p>
  
  <pre><code>$('document').ready(
  function() {
  $("#centerplist .products .datainfo a:contains('keyboard')").text(
    function() {
      return $(this).text().replace(/keyboard/g, "");
    }
    ).addClass("eu");
   }
  
   );
   $('document').ready(
   function() {
   $("#centerplist .products .datainfo a:contains('French')").text(
    function() {
      return $(this).text().replace(/French/g, "");
    }
    ).addClass("eu");
    }
    );
  </code></pre>