title: TCL character class
body: <p>According to the <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/re_syntax.htm#M17" rel="nofollow noreferrer">TCL man page for "string match"</a> I should be able to do a character class.  A simple example:</p>
  
  <pre><code>set rev revA
  
  if { [string match "revA*" $rev } {
     puts "revA"
  } elseif {[string match "revB" $rev]} {
     puts "revB"
  } elseif {[string match "rev[CD]" $rev]} {
     puts "revC or D"
  } else {
     puts "none"
  }
  </code></pre>
  
  <p>Without the "rev[CD]" section it works fine but as shown above I get:</p>
  
  <pre><code>% tclsh tmp.tcl
   missing close-bracket
  </code></pre>
  
  <p>What am I missing?</p>