#This will count total characters than alphabets and words including them also
set total_characters [string length [string map {" " ""} $text]]
set total_characters [string length [string trim $text]]
or
#This will only count total alphabets and words
set total_characters [regexp -all -nocase {[A-Z][0-9]} $text]
set total_alphabets [regexp -all -nocase {[A-Z]} $text]
set total_numbers [regexp -all {[0-9]} $text]
set total_words [llength $text]
#To count smilies
set total_smiles [regexp -all {:)} $text]
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee) PS: Guys, I don't accept script helps or requests personally anymore.
==================================