我想采取一些RTF输入并清除它以删除除\ ul \ b \ i之外的所有RTF格式,以将其粘贴到具有较小格式信息的Word中。清理RTF文本
用来粘贴到Word会是这样的命令: oWord.ActiveDocument.ActiveWindow.Selection.PasteAndFormat(0)(在剪贴板一些RTF文本已经)
{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}
{\colortbl ;\red255\green255\blue140;}
\viewkind4\uc1\pard\highlight1\lang3084\f0\fs18 The company is a global leader in responsible tourism and was \ul the first major hotel chain in North America\ulnone to embrace environmental stewardship within its daily operations\highlight0\par
你有什么关于如何使用一些正则表达式或其他方法安全地清理RTF的想法?我使用VB.NET来处理,但任何.NET语言样本都可以。