quotemeta - Quotes and protects metacharacters.
quotemeta(str)
This function protects metacharacters: it will return the input string after having introduced an antislash before each one of these characters: .\+*?^($)[]
Note: In the followings examples, the _ between the { should be removed to make it work.
in: res={_{quotemeta(".\/*")}}. out: res=\.\\\/\*.
Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>
1.0 2014-09-09 21:24:14 laplante@sednove.com