I have written the following regex long time ago that must match at least 3 words and works in both Latin and Cyrillic characters : regex = '([^ ,;\d]{2,}[ ,;]{1,}){2,}[^ ,;\d]{2,}'
I would like to rewrite it to match hello
but fail to match hello,
because of the comma. However, I would still like it to match hello, and, more, words
.
Example matches: hello
, hello, test69
, hello, test69, matches
Example non-matches: hello,
hello test69
, hello test69 matches