title: What is wrong with this BASH regular expression
body: <pre><code>$ reg='(\.js)|(\.txt)|(\.html)$'
  $ [[ 'flight_query.jsp' =~ $reg ]]
  $ echo $?
  0
  </code></pre>
  
  <p>*.jsp should not be matched based on the regular expression, but actually doesn't.</p>
  
  <p>Any suggestions?</p>