if($code =~ !.+!gi){ print "Anchor was found!"; }