Variable: grep-match-regexp

grep-match-regexp is a customizable variable defined in grep.el.gz.

Value

"\\[\\(?:0?1;\\)?31m\\(.*?\\)\\[[0-9]*m"

Documentation

Regular expression matching grep markers to highlight.

It matches SGR ANSI escape sequences which are emitted by grep to color its output. This variable is used in grep-filter.

This variable was added, or its default value changed, in Emacs 28.1.

View in manual

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/grep.el.gz
(defcustom grep-match-regexp "\033\\[\\(?:0?1;\\)?31m\\(.*?\\)\033\\[[0-9]*m"
  "Regular expression matching grep markers to highlight.
It matches SGR ANSI escape sequences which are emitted by grep to
color its output.  This variable is used in `grep-filter'."
  :type 'regexp
  :version "28.1")