# Matches ANSI Invert Start or End \e # An Escape \[ # Followed by a bracket (?> (?7m) # 7m starts invert | (?27m) # 27m stops invert )