This way you'll only replace newlines that aren't in <PRE> sections.s/(<pre>.*?<\/pre>)|\n/$1 || "<br>\n"/isge;
In reply to Re: Substitute within a search
by bart
in thread Substitute within a search
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |