Next: , Previous: , Up: Text functions   [Contents][Index]


7.4.2 ‘regesc()

regesc()’ can be used to escape regular expression characters that are defined in POSIX BRE. Those characters are, ‘$’, ‘.’, ‘*’, ‘[’, ‘\\’, and ‘^’.

regesc '^[$\'  # Returns \^\[\$\\