$str = "<pre><br>\n</pre>"; while($str =~ /(<pre>.*?<\/pre>)/gsi) { my $pos = pos $str; substr($str, pos($str) - length($1), length($1)) =~ s/<BR>\n/\n/ +gsi; pos($str) = $pos; } print $str;
In reply to Re: Substitute within a search
by ccn
in thread Substitute within a search
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |