Count number of words in HTML

Does anyone have a method for counting the number of words in an HTML document? If not, any idea how best to approach the problem.

Basically, I’m looking to figure out how to replace all HTML tags, leaving just the content.

If you search for “remove HTML tags” you should get an answer. I remember someone posting a regex statement that removes the tags.

@Garry Pettet : This thread might help: https://forum.xojo.com/15273-strip-html-tags/0

@Tim Dietrich - thanks. It led me to @Kem Tekinay’s RegExRx app which is great and has helped a lot.