$text =~ m/\Q$str/; [download]
In reply to Re: Using variables in regex search by toolic in thread Using variables in regex search by lancer