fix regular expression for ANSI escapes

wouldn't catch `\x1b[01;`, only `\x1b[0;` or `\x1b[1;`.

closes #3614