blob: e55e7f293098e3744787cb6fe9a9000fa23479d3 [file] [log] [blame]
David K. Bainbridge528b3182017-01-23 08:51:59 -08001this is the source definitions for the scary escape code regex
2
3# from tests in Terminal.app, this regex should cover all basic \e[ and \e] cases
4^([\[\]]([\d\?]+)?(;[\d\?]+)*)?.
5
6# this catches any case the above does not
7# make sure to not include any special characters the main regex finds (like ?)
8\[[^a-zA-Z0-9@\?]+.
9
10# esc + paren + any single char
11[\(\)].
12
13# didn't re-check this one (not included)
14[\[K]\d+;\d+