His validate command sub is fine. the validatecommand sub takes several args, and the second one is the char being added or deleted. It is just one char, whether use ^ and $ is not important here.
In reply to Re^2: Changing the Textvariable of a restricted entry widget (TK)
by pg
in thread Changing the Textvariable of a restricted entry widget (TK)
by Real Perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |