in reply to Re^2: Replacing new lines in multi line text box form fields with <br>.
in thread Replacing new lines in multi line text box form fields with <br>.

You must be careful, if input comes from a TEXTAREA, your text will contain a CRLF combination for every end-of-line. You're better off replacing those with plain newlines, "\n", before you insert them in a database, for example. Or before feeding it back into the HTML for the next rendered page.
s/\x0D\x0A/\n/g

And don't forget to HTML-escape your string, when inserting it into the HTML, both for the TEXTAREA for edit and in the plain HTML for view, the former before you insert your <BR> tags — or you might end up escaping your freshly inserted tags, too.

Oh, and it'd still be nice if you kept the newlines. For example:

s/$/<BR>/mg;
or
s/\n/<BR>\n/g;