I need to write a regex that would match for words that do not contain any control characters. I read that negative lookahead are used for that and wrote this regex:
/(?!\p{C}+)/
But don't get why it's not working. Expected result:
word without control characters - match
word with control character between - don't match