@IamPHP @linode I may have cheated, but $ grep -E '^[linodx]{2,5}we[linodx]$' /usr/share/dict/words dowel, nowed, nowel, dowed