in reply to Formatting Text as HTML (was: regular expression)
Hey!
First, you really should post some piece of code showing what you tried to do.
Secondly, maybe another title for the subject would more appropriate, as you can easily solve your problem without regular expressions.
A simple string concatenation while looping over your file could do the trick:
<kbd>--perl -pi.bak -e "chomp;$_ .= qq/<br>\n/" your_file.txt # Win32 perl -pi.bak -e 'chomp;$_ .= "<br>\n" your_file.txt # *nix
|
|---|