in reply to Regex to match 'A HREF=', quoting RE replacements (was: Regex Question)

Use the \Q...\E metacharacter-escape sequence.
$n_src =~ s/\Q$s_text\E/[$i $s_text]/;


japhy -- Perl and Regex Hacker