The article incorrectly calls "\e[1;1H\e[2J" a "regex".
It is, of course, an ANSI escape sequence.
ANSI escape code - Wikipedia

Even Windows seems to respond to these now, although I don't think \e is a standard character escape code in C. Alternatively, it can be written in octal \033 or hex \x1b: printf("\033[1;1H\033[2J")