User Tools

Site Tools


syntax:functions:countwords

CountWords(text, [delimiters])

Category: Text function


Description

This function returns the number of words in text. Optionally, the second text argument (delimiters) can contain a list of delimiter characters.


Arguments

ArgumentTypeDescription
textTextAny text, or value that can implicitly converted to text.
delimitersText(Optional) A list of individual delimiter characters.

Return value type: Number (integer)


Examples

countwords("Bicycle DX-349 black")  //Returns 3
countwords("Bicycle DX-349 black", " -.,")  //Returns 4 (space and - delimiters)


See also

syntax/functions/countwords.txt · Last modified: 2024/10/21 12:33 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki