in reply to Some sexy regex

$foo = join '', @{$chars}; $string =~ /^[\Q$foo\E]+$/;
^ and $ to make sure it matches from beginning to end, and \Q and \E to make sure it puts a \ in front of non letters chars... If it returns true, you are all good
also... you could do
$string =~ /[^\Q$foo\E]/;
and fail if that matches, would probably be faster since it stops as soon as it finds a character you don't want
                - Ant