Use the 'Escape chars' activity to replace special characters with their escape codes.
Uses System.RegularExpressions.TRegEx.Escape
Activity properties
begin var EscapedStringValue: string; EscapedStringValue := TRegEx.Escape(StringValue, True); end; |
Resulting Code
If 'Use wildcards' is checked, the '\*' or '\?' characters are not converted.