Help for this page

Select Code to Download


  1. or download this
    perl -e "my $str='foo@bar'; if ($str =~ /@/){ print \"No need to escap
    +e the \@ in a regex\";}"
    No need to escape the @ in a regex
    
  2. or download this
    perl -e "my $str='@bar'; if ($str =~ /^@/){ print \"No need to escape 
    +the \@ in a regex\";}"
    No need to escape the @ in a regex