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