I already read the popular (28k views) question of this regex. But it doesn't work for me. Better regex has been found, but I am stuck hardly with one little moment.
Here is the list of drinks:
whisky/gin/nuka-cola/beer/liqueur/abs-inth/tea
and script should get all non soft drinks. I have found nice regex for this:
/\b(?!(?:tea|nuka\-cola)\b)[\w\d\-]+\b/
And result is:
1 : whisky
2 : gin
3 : -cola
4 : beer
5 : liqueur
6 : abs-inth
The problem is with the cola (3rd result). This is because \b doesn't like the '-' character. Please, help me to remove this cola from the list.