davido++ has given you a solution which replaces every newline with a space. Isn't that exactly what you're asking for?
If not, you'll need to show several examples - enough that we can see what you want. Make sure the spaces are countable.
After Compline,
Zaxo
In reply to Re^3: Replacing the pattern
by Zaxo
in thread Replacing the pattern
by agynr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |