Alternatively could include escaped formatting characters such as newline (\n) and tab (\t). New regex would be ```/[^\n\t -~]/g```