title: Remove specified string pattern(s) from a string in bash
body: <p>I found a good <a href="https://stackoverflow.com/questions/17129050/remove-substring-matching-pattern-both-in-the-beginning-and-the-end-of-the-varia">answer</a> that explains how to remove a specified pattern from a string variable. In this case, to remove 'foo' we use the following:</p>
  
  <pre><code>string="fooSTUFF"
  string="${string#foo}"
  </code></pre>
  
  <p>However, I would like to add the "OR" functionality that would be able to remove 'foo' OR 'boo' in the cases when my string starts with any of them, and leave the string as is, if it does not start with 'foo' or 'boo'. So, the modified script should look something like that:</p>
  
  <pre><code>string="fooSTUFF"
  string="${string#(foo OR boo)}"
  </code></pre>
  
  <p>How could this be properly implemented?</p>