I would like to exclude certain words using a regular expression.
Input Text:
aaa1234 cc bbb1234 c1234 cc dd aacc cccc ccadf cc
Output Text:
aaa1234 bbb1234 c1234 dd aacc cccc ccadf
exclude word: cc
I used (^|\s)[^(cc)]+(\s|$)
How to make the regular expression work?