console html formatter regex parser