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


in reply to Re^4: Unrecognized escape \Q passed through in regex
in thread Unrecognized escape \Q passed through in regex

quotemeta should be easy to implement in any language. Adding a slash in front of any characters other than [a-zA-Z0-9] should do the trick.