条件删除问题
我有一个txt文件,想用javascript来实现删除满足某一条件的内容,如下:<RTF Preamble>
<FontTable>
{\fonttbl
{\f1 \fmodern\fprq1 \fcharset0 Courier New;}
{\f2 \fswiss\fprq2 \fcharset0 Arial;}
{\f3 \fcharset134 Arial Unicode MS;}
{\f4 \fcharset134 \'cb\'ce\'cc\'e5;}
{\f5 \fcharset134 \'d3\'d7\'d4\'b2;}
{\f6 \fcharset0 Arial Unicode MS;}
{\f7 \fcharset134 \'cb\'ce\'cc\'e5-\'b7\'bd\'d5\'fd\'b3\'ac\'b4\'f3\'d7\'d6\'b7\'fb\'bc\'af;}
{\f8 \fcharset0 \'ce\'a2\'c8\'ed\'d1\'c5\'ba\'da;}
{\f9 \fcharset134 \'ce\'a2\'c8\'ed\'d1\'c5\'ba\'da;}
{\f10 \fcharset134 SimSun;}
{\f11 \fcharset0 \'cb\'ce\'cc\'e5;}
{\f12 \fcharset0 Lucida Console;}
{\f13 \fcharset134 \'ba\'ba\'d2\'c7\'d6\'d0\'ba\'da\'bc\'f2;}}
<StyleSheet
{\stylesheet
</RTF Preamble>
即,我要删除以<RTF Preamble>开头,以</RTF Preamble>结尾的中间的所有内容,请问怎样用javascript来实现??