I want to match:
But not a list with a trailing comma. My current regex:
also matches lists with trailing commas (
aaa,bbb,). I was thinking I could also do:
but that is rather ugly. My real regex is not matching 3-letter-words, but something bigger, and repeating the regex is ugly. How can this be fixed?