Assuming that 'line' is in $string...
$string =~ s!\n/\n/!! [download]
In reply to Re: What would be the best way? by BrowserUk in thread How to make only two of three substitutions? by curtisb