正则表达式去除h3标签并保留内容

loo*_*loo 0 regex coldfusion

我正在寻找一个正则表达式来剥离h3标签,只有内容应该保留

例如.

<h3 id="123">my h3 tag</h3>

我需要剥离标签并留下

我的h3标签

我目前有 reMatchNoCase("(<h3)(.*?)(</h3>)",i)

这是从字符串的许多其他部分解析,而不是我需要清理内容

谢谢

Mig*_*tyE 5

<cfset content = ReReplace(content, "</?[hH]3[^>]*>", "", "ALL")>
Run Code Online (Sandbox Code Playgroud)

这应该比ReReplaceNoCase更快,并且仍然不区分大小写(因为[hH]).