Next: ‘pop()’, Previous: ‘contains()’, Up: Text functions [Contents][Index]
‘regesc()’ can be used to escape regular expression characters that are defined in POSIX BRE. Those characters are, ‘$’, ‘.’, ‘*’, ‘[’, ‘\\’, and ‘^’.
regesc '^[$\' # Returns \^\[\$\\