my $cn = qr/chapnum/; my $cp = qr/chapter/; $str1 =~ s#(1</$cn>\s*</$cp>\s*)<x>(<$cp>\s*<$cn>1A)#$1$2#s;
In reply to Re: Pattern matching problem
by mantadin
in thread Pattern matching problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |