title: How can I replace multiple characters in a string?
body: <p>I want to create a regex with following logic:
  1., If string contains <code>T</code> replace it with space
  2., If string contains <code>Z</code> remove <code>Z</code></p>
  
  <p>I wrote two regex already, but I can't combine them:</p>
  
  <pre><code>string.replace(/\T/g,' ') &amp;&amp; string.replace(/\Z/g,'');
  </code></pre>
  
  <p>EDIT: I want the regex code to be shorter</p>