in reply to how should i test whether a string contains between 6 and 20 letters and numbers
if ($s=~ /^ [^\W_]{6,20} $/x) { print "success!"; } [download]