Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
Count number of words
Forums
Active Threads
Search
Who's Online
Help
Print Thread
Count number of words
#
202094
14/07/08
01:29 PM
Joined:
Feb 2006
Posts: 22
B
BIGZIPZ
OP
Ameglian cow
OP
BIGZIPZ
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.
Copy Link to Clipboard
Re: Count number of words
BIGZIPZ
#
202095
14/07/08
01:47 PM
Joined:
Oct 2005
Posts: 1,741
G
genius_at_work
Hoopy frood
genius_at_work
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
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage