Counting words in a text string

Hi @Gfranco2021,

adding my two cents to this as counting words can be tricky. Just counting the spaces can lead to inaccurate results when you factor in human errors like leading / trailing or duplicated white space.

Here is an example workflow that shows four different approaches to count words. Please note that I found a potential bug in the text processing nodes.

PS. I forgot to share some kudos to @Vernalis as I put the new feature about collection sized at work already. Thanks again for implementing that so quickly :beers:

Best
Mike

2 Likes