tye, well there is a reason not to simplify like you suggested:
s#<div class="blockqte">#<pre>#g; # this is OK s#</div>#</pre>#g; # this creates the problems
you replace all </div> with </pre> and if I understood it correctly, not all the <div> tags have the attribute class="blockqte" and should be replaced ... ;-)
-- Hofmator
In reply to Re2: Help on using alternation grouping star versus dot star.
by Hofmator
in thread Help on using alternation grouping star versus dot star.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |