title: Dynamic Case Statements in Bash
body: <p>How would I go about writing:</p>
  
  <pre><code>PreviousInput='@(User1 | User2 | User3)*#channel'
  ###############################
  Expression="*${PreviousInput}*"
  case $Input in
      $Expression ) 
          Do_Something ;;
      *)
          Do_Something_Else ;;
  esac
  </code></pre>
  
  <p>I would really like to use a case statement because I have a lot of logic already invested in the case statement, and really don't want to rewrite it.  I was thinking that somehow I could use glob patterns, but don't really know how I would do that.  Any suggestions? Any help is appreciated.  </p>