#!/usr/bin/tclsh set s1 "hello eximius world" set s2 "1234 world is beautiful" set s3 "world" set s4 "Hello" set s5 "world" set s6 "e" puts [string match $s3 $s5] puts [string compare $s3 $s5] puts [string first $s6 $s2] puts [string toupper $s1] puts [string tolower $s1 ] puts [string last $s6 $s1] puts [string length $s1 ] puts [string trimleft $s1 $s2] puts [string trimright $s1 $s2] puts [string trim $s1 $s2] puts [string match {is} $s2] puts [string index $s1 10] puts [wordend $s1 10] puts [wordstart $s2 5] puts [wordend $s2 7] puts [wordstart $s1 6]
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more