Nice work!
So would your full answer be:
- To put that in a while loop, and
- Add the <pre> & </pre> tag removal code, like this:
?perl -0 -pe '1 while (s/(<pre>\n(?:[^\n]*<p>\n)*)([^>\n]*)\n(.*?<\/pre +>)/$1$2<p>\n$3/ms);s/<\/?pre>//g' htmlfile
In reply to Re^2: Substitution inside tags, as 1 line
by tel2
in thread Substitution inside tags, as 1 line
by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |