Vba Excel搜索html标记之间的正则表达式文本

Vba Excel搜索html标记之间的正则表达式文本,vba,excel,excel-2007,Vba,Excel,Excel 2007,我试图通过搜索功能将excel文档中的html强文本替换为其他文本 我尝试了这个正则表达式,但没有成功: (?<=\<strong\>).+?(?=\<\/strong\>) 非常感谢为什么不直接使用替换 Replace(Replace("<strong>APPLE</strong>","<strong>","||"),"</strong>","||") Replace(Replace(“APPLE”、“”、“|

我试图通过搜索功能将excel文档中的html强文本替换为其他文本

我尝试了这个正则表达式,但没有成功:

(?<=\<strong\>).+?(?=\<\/strong\>)

非常感谢

为什么不直接使用替换

Replace(Replace("<strong>APPLE</strong>","<strong>","||"),"</strong>","||")
Replace(Replace(“APPLE”、“”、“| |”)、“”、“| |”)

在此期间,我可以将其设置为“excel粗体”吗?我明白了。。。你想让(“| |苹果| |”)在excel中显示为粗体吗?嘿,你可以查看instr函数以及Range.Characters(x,y).font.bold=true来实现你的目标。
||apple||
Replace(Replace("<strong>APPLE</strong>","<strong>","||"),"</strong>","||")