i try to ceck a string without a tailing specified word. The word can contain a number at the end [0-9]+.
test test [match]
test test_word [not match]
test test_word9 [not match]
test test_word132 [not match]
The regex below work only for _word or _word1..._word9
.*(?<!_word|_word[0-9])$
Any suggestions?