title: bash regexp for cleaning some chars
body: <p>I have a string to match and sanitize in bash, for example:</p>
  
  <pre><code>POST_DATA="password=this*pass&amp;is/for?testing"
  </code></pre>
  
  <p>I want to match all the string after the = symbol sanitizing (excluding) this chars *&amp;/?</p>
  
  <p>I can get everything after the = symbol using:</p>
  
  <pre><code>[[ ${POST_DATA} =~ ^password=(.*)$ ]] &amp;&amp; password="${BASH_REMATCH[1]}"
  echo $password
  </code></pre>
  
  <p>This shows:</p>
  
  <pre><code>this*pass&amp;is/for?testing
  </code></pre>
  
  <p>I want a regexp which desired output is:</p>
  
  <pre><code>thispassisfortesting
  </code></pre>
  
  <p>I tried some excluding patterns which didn't work like this:</p>
  
  <pre><code>^password=(^[^\*\?&amp;/])*$
  </code></pre>
  
  <p>Any idea? Thanks.</p>