![]() |
|
There's more than one way to do things | |
PerlMonks |
(code) One-liner adds HTML breaks to text fileby ybiC (Prior) |
on Dec 17, 2001 at 02:26 UTC ( #132406=snippet: print w/replies, xml ) | Need Help?? |
perl -pe 's/^(?!(<p>|<br>))/<br>/gi;' < original_file > new_file
|
|