- body_text = (input.BODY).replaceAll(("<(.|\n)+?>"),"");
- body_text = (body_text).replaceAll(" ","");
- body_words = body_text.toList(" ").size();
- alert(body_words);
Originally, I tried to count the occurance of strings using RegEx, but this currently does not work in Creator, or my understanding of RegEx is wrong on this point.
- word_occurance=(body_text).getOccurenceCount(("\b(\w+?)\b"));
I hope others find this useful or can provide improvements.
John M. Whitney