Hi and thx for so fast answer. In perl this works nice yes but i need that regex for C#.
I can do with reading line by line but there is so few text that regex is better for my opinion.
So what i want to do.
For example this is text:
----
\r\n\r\n Lorem Ipsum is simply dummy text of the printing and
typesetting industry. \r\n\r\nLorem Ipsum has been the industry's standard
dummy text ever since the 1500s, when an unknown printer took a galley
of type and scrambled it to make a type specimen book. \r\n\r\nIt has survived
not only five centuries, but also the leap into electronic typesetting,
remaining essentially unchanged. \r\n\r\nIt was popularised in the 1960s with
the release of Letraset sheets containing Lorem Ipsum passages, and
more recently with desktop publishing software like Aldus PageMaker
including versions of Lorem Ipsum.\r\n\r\n
---
Now i want: First and last \r\n\r\n are replaced with "", and middle on with " "
Lorem Ipsum is simply dummy text of the printing and
typesetting industry. Lorem Ipsum has been the industry's standard
dummy text ever since the 1500s, when an unknown printer took a galley
of type and scrambled it to make a type specimen book. It has survived
not only five centuries, but also the leap into electronic typesetting,
remaining essentially unchanged. It was popularised in the 1960s with
the release of Letraset sheets containing Lorem Ipsum passages, and
more recently with desktop publishing software like Aldus PageMaker
including versions of Lorem Ipsum.
regards