title: Remove \n or \t from a given string
body: <p>How can I strip a string with all <code>\n</code> and <code>\t</code> in python other than using <code>strip()</code>?</p>
  
  <p>I want to format a string like <code>"abc   \n \t \t\t \t \nefg"</code> to <code>"abcefg</code>"?</p>
  
  <pre><code>result = re.match("\n\t ", "abc \n\t efg")
  print result
  </code></pre>
  
  <p>and result is <code>None</code></p>