I\'m trying to return a count of all words NOT between square brackets. So given ..
[don\'t match these words] but do match these
I get a c
I would use something like \[[^\]]*\] to remove the words between square brackets, and then explode by spaces the returned string to count the remaining words.
\[[^\]]*\]