Changed regex so it leaves newlines and tabs alone