Keep It Simple, Stupid | |
PerlMonks |
Re: Makeing rules in Regex for string content and sizeby perlcgi (Hermit) |
on Jun 05, 2000 at 14:20 UTC ( [id://16377]=note: print w/replies, xml ) | Need Help?? |
A slightly shorter version of corion's nice explanation above would be:
/^[\w ,"&-']{4,16}$/ Updated: Caveat - This will also allow underscores which is probably not what you want. Kudos to corion
In Section
Seekers of Perl Wisdom
|
|