in reply to Matching brackets in Regular Expression
if ($text =~ /.*\Q$stub\E.*/s) { #do something } [download]