
Within a bracket expression, the backslash is not special, so it does not need to be escaped. The double backslashes within brackets were found with: grep -o '\[[^][]*\\\\[^][]*\]' syntax{,/extra}/*rc Also, incorporate the square brackets into some bracket expressions by listing the closing bracket first, saving a separate regex for those two brackets.