%stringToWords()

Aliases%stringToWords( )
Parametersstring @value

    Returns an associative array consisting of the words of the given value
extracted and enumerated in order of their extraction.

Example:

@text = 'The fox jumped over the moon and said, "yeee haw".
@words = %stringToWords( @text )

foreach( @words as @word )
{
echo Word: [@word]
}
endforeach

Output:

Word: [fox]
Word: [jumped]
Word: [over]
Word: [the]
Word: [moon]
Word: [and]
Word: [said,]
Word: [yeee haw]
Word: [.]