You need to escape the <BR> tags in your post, otherwise they don't get displayed. Replace the opening < with <.
As for your question, you should be able to do something like:
--$text =~ s/\n/<BR>/g;
In reply to Re: ASCII in regex
by davorg
in thread ASCII in regex
by toadi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |