Validate tags against a regexp

This is a simple proposal to validate tags against a regular expression as they are typed by the user.
It includes an example for a numbers-only tag (/^\d+$/).