I am not much skilled in TCL hence requesting help to provide required mechanism to achieve the below output:
Suppose I have a string who value is “He served food(readymade icecream);”
I want the substring out of this main string as “readymade icecream);“
Further is it possible to further strip of the main string to get substring as “readymade icecream“
Here are my attempts but it is not working:
string trim $str "("
To trim from the left:
To trim from the right:
See the manual pages for more info.