in reply to Remove RTF Formatting

Too much overhead!

s/{.*\n//g; # remove lines starting with braces s/(\\[\w-]+)\b//g; # remove RTF commands s/(\n)\s+(\S+)/$1$2/g; # remove extra spaces s/([^\\\n]+)\\(\n)/$1$2/g; # get rid of \ at the ends of lines s/\\\n//g; # get rid of lines with a \ only

Then execute with:

perl -0777 -p remove_rtf_formatting.pl < infile.rtf > outfile.txt
I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.