while (<DATA>) { $_ =~ s!(b)</it>(<.+?>)<it>(cd)</it>(<.+?>)!$1$2$3$4</it>!; print $_; } __DATA__ <it>a</it>+2<it>b</it><inf><it>cd</it></inf> <it>a</it>+2<it>b</it><sup><it>cd</it></sup>
In reply to Re: using $1 as find string
by nedals
in thread using $1 as find string
by texuser74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |