function

quotemeta . string . sncode

VERSIONlatest Quote meta characters.

QUOTEMETA

NAME

quotemeta - Quotes and protects metacharacters.

SYNOPSIS

quotemeta(str)

PARAMETERS

str
String to be quoted.

DESCRIPTION

This function protects metacharacters: it will return the input string after having introduced an antislash before each one of these characters: .\+*?^($)[]

RETURN

Returns the string with its metacharacters quoted.

EXAMPLES

Note: In the followings examples, the _ between the { should be removed to make it work.

in:  res={_{quotemeta(".\/*")}}.
out: res=\.\\\/\*.

AUTHOR

Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>