Try this if you're using linux/unix system:

$variable =~ s/\n\r/<br>/g;

Alex

Guy Tubbs wrote:

>Hi,
>
>Can anyone give me the code that will replace all the carriage returns in a
>variable with another character.
>
>I am getting input from a web page and need to replace the returns with the
><br>  tag.
>
>Thanks,
>Guy
>
>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to