使用 coldfusion ,我使用RematchNoCase
命令获取所有表
<cfset data = REMatchNoCase('<table.*?</*.table*.>','#header#')>
我将值作为一个数组得到,但我想只得到那些有一类网格的表,如
<cfset data = REMatchNoCase('<table class="grids".*?</*.table*.>','#header#')>
但是我在最后一次尝试时得到一个空数组
答案 0 :(得分:1)
以下是否有效?
<cfset data = ReMatchNoCase("<table[^>""]+class=""grids""[^>]>.*?</table>", header) />