This can be simplified dramatically
if res =~ /A-Z0-9/i