mIRC Home    About    Download    Register    News    Help

Print Thread
#202094 14/07/08 01:29 PM
Joined: Feb 2006
Posts: 22
B
BIGZIPZ Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Feb 2006
Posts: 22
I've been reading the Numbers and Text section of the help file looking for an identifier which is capable of counting the number of words in a text. Obviously $len is fine for letter counting, but is anyone aware of how to word count?

Thank you.

Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Take a look at Token Identifiers, specifically $numtok.

Code:

var %text = This sentence has five words.
echo -a $numtok(%text,32)



-genius_at_work


Link Copied to Clipboard