if I assign $line to $1, then in the output rest of the strings are removed and only $1 is visible.if($line =~ /<cc>([\s\S]+?)<\/cc>/){ #$line = $1; $line =~ s/&amp;/-/g; $line =~ s/&/-/g; $line =~ s/-$//g; }
In reply to Re^4: Substitution for braces
by gem555
in thread Substitution for braces
by gem555
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |