fork download
  1. set text {abcde
  2. fghij<FooBar>}
  3. regexp {(.*)<FooBar>} $text - result
  4. puts $result
  5.  
Success #stdin #stdout 0s 28096KB
stdin
Standard input is empty
stdout
abcde
     fghij