quote
Description
The quote() function encloses a string in the specified character. It also inserts a backslash character (\) in front of any special characters that are contained in the string, to indicate that these characters should be taken literally (that is, treated as special characters). The quote() function is useful when parsing arguments into commands that are shell scripts.
For more information on special characters, see Special Characters.
Syntax
result = quote (string1, quotechar);
Arguments
string1 | Required. The string to enclose in the specified quotechar |
quotechar | Required. The character to use as the enclosing character |
Return Values
result contains the quoted string.
Example
In the example:
result = quote ("Hello, Hello, Hello", "*");
result is assigned:
"*Hello, Hello, Hello*"