How to Count the Words in the First Line of Text in the Clipboard?

This'll break if there's more than one : in the line -- since we only want the first, try a non-greedy match: ^(.*?):

(Which is what you call "learning from your own embarrassing mistakes" :wink: And what's the betting I've made another one here?)

2 Likes