tlm correctly pointed out to me that there's more to the replacement than whitespace, so getting rid of |$ will prevent a desired replacement.
In reply to Re: Regex substituion eating newlines
by Roy Johnson
in thread Regex substituion eating newlines
by mdi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |