# Matches an ANSI escape code (?-i)\e # An Escape \[ # Followed by a bracket (?[\d\:\;\<\=\>\?]{0,}) # Followed by zero or more parameter bytes (?[\s\!\"\#\$\%\&\'\(\)\*\+\,\-\.\/]{0,}) # Followed by zero or more intermediate bytes (?[\@ABCDEFGHIJKLMNOPQRSTUVWXYZ\[\\\]\^_\`abcdefghijklmnopqrstuvwxyz\{\|\}\~]) # Followed by a final byte