in reply to How to make only two of three substitutions?
Assuming that 'line' is in $string...
$string =~ s!\n/\n/!! [download]