A maybe simpler ansi regex.