in reply to Need to match number other than 1
if ($str =~ /^(?!1$)\d+$/) { do_stuff($str); } [download]