Skip to content

@technobuddha > library > RegExp > Constants

Constant: ansiEscapes

ts
const ansiEscapes: RegExp;

Defined in: regexp.ts:276

Regular expression that matches ANSI escape sequences, including OSC (Operating System Command) and CSI (Control Sequence Introducer) patterns. Useful for stripping or identifying ANSI codes in strings, such as those used for terminal text formatting.

See

https://en.wikipedia.org/wiki/ANSI_escape_code