fork download
  1. ;# your code goes here
  2. set theString "I am You a string sds"
  3. if {[regexp -- {string$} $theString]} {
  4. puts "Ends with 'string'"
  5. }
  6.  
  7. if {![regexp -- {You} $theString]} {
  8. puts "Does not start with 'You'"
  9. }
Success #stdin #stdout 0s 27952KB
stdin
Standard input is empty
stdout

Standard output is empty