On 29 Jun 2015, at 21:00, Walter Lee Davis wrote:
Thanks, I will look into that, but at first read, it doesn't look exactly like what I'm thinking of
The fix in the FAQ for “Completion considers $var, @var, and var as different” is exactly what you want.
It links to a longer blog post explaining the concept of character classes, but if you do not care about this, you can just follow the steps given in the FAQ entry.