Regex Help



i am trying to match a '!' followed by any char but a '!' or no chars
(string is only a '!')

this is what I have and it is not working:

$str = "!!";
# this is not working. it is matching "!!"
print "$str\n" if $str =~ /\![^!]*/;

Thanks for any help


.