
The Function Block PREG_QUOTE masks characters of regular expressions.
Note: This function is Binary-Safe. This means that UTF8 characters cannot be processed directly.
The input sets a backslash before each character that belongs to the syntax of a regular expression. This is useful when you need to search text for matches with a string generated at runtime, which could contain special RegEx characters.
Special characters of regular expressions are:
. \ + * ? [ ^ ] $ ( ) { } = ! < > | : - #
Note that / is not a special RegEx character.
If the optional input was specified, this will also be masked. This is useful to mask the delimiter required by the PCRE functions. The / is the most commonly used delimiter.
The output returns the masked string.