http://qs321.pair.com?node_id=11109702


in reply to Switch/Format to not interpret metacharacters in regex?

See also the built-in quotemeta function (which does something very similar to \Q ... \E).