javascript - Regular expression to match text that "doesn't" contain a word? -
i exclude words using 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 make regular expression work?
Comments
Post a Comment