in reply to Re^3: Substitution for braces
in thread Substitution for braces
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; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Substitution for braces
by Corion (Patriarch) on Jul 09, 2009 at 08:50 UTC | |
by gem555 (Acolyte) on Jul 09, 2009 at 09:33 UTC | |
by Corion (Patriarch) on Jul 09, 2009 at 10:10 UTC |