How do you match all of the words without colon in regex

Good question, there’s probably a good way with lookbehind / lookahead.

Testing singular words is easy enough as \w matches word characters which don’t include :

"Th:is".match(/^\w+$/)
"This".match(/^\w+$/)

Testing a sentence is more difficult, I’m not sure how to do it in a single regex so I’d do it in two steps.

var matches = "Th:is is another test".match(/[\w:]+/g);
var filtered = matches.filter(function(str) { return str.indexOf(':') == -1 });