in reply to How to escape metacharacters without backslash it in regex?

/\Q$string\E/ see Quote and Quote-like Operators and quotemeta.