in reply to Re: substitution problem with ()in thread substitution problem with ()
s/\Q$from_re/$to/; [download]
"\Q$string" is the same as quotemeta($string), both in a doublequotish string and in a regexp.