How can I code a (REGEX?-) filter that only displays a part of the tiddler?

If I examine this more closely I suspect that the filter removes the new lines \n…
How do I avoid this?

Solution to this problem here: How can I build a filter that uses split and join... and does not eat the \n newline characters?