title: JS get a string to go through expressions replacement a few times
body: <p>I want a way to get a text/string through different regular expressions, and different replacement</p>
  
  <p>easily I can do this in php as: </p>
  
  <pre><code>$pattern[] = "regex"; $replacement[] = "replace string";
  $pattern[] = "regex"; $replacement[] = "replace string";
  $pattern[] = "regex"; $replacement[] = "replace string";
  $pattern[] = "regex"; $replacement[] = "replace string";
  
  echo preg_replace($pattern,$replacement,$string);
  </code></pre>
  
  <p>I am still learning javascript, i figured <code>.replace()</code> but is there a way do an array of expressions? it is not technical to repeat <code>.replace()</code> over an over. specially if it's a big list of expressions. </p>