> Why not go with /[\w ]+/
> \s contains more than just a ' ' and I don't know if an apostrophe in a name
> is really valid or not.
> Rather, I think the earlier suggestion of /[\w ]{,20}/ might be better so you
> can limit the string length to only the first 20 characters.
> Similarly, I would limit the html input box to only 20 characters for simplicity.
I would prefer the simplicity of /[\w ]+/... if used like this:
if ($st =~ /[\w ]+/) {
# good characters found in $st
}
So, how do I find if there are any "bad" characters (outside the set of
"[\w ]+" ???
(Yes the HTML limits both first and last name fields to 20 characters.)
--Chuck
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]