He also needs to check for '-', which \w doesn't do. That first regex should be /^[\w-]+$/
----
Reinvent a rounder wheel.
Note: All code is untested, unless otherwise stated
In reply to Re: Re: Checking input
by hardburn
in thread Checking input
by skirrow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |