I want to return the column headings for each x in a record (row) I can find the first using index and match but not subsequent column headings.
[TABLE="width: 500"]
<tbody>[TR]
[TD]ad[/TD]
[TD]ae[/TD]
[TD]af[/TD]
[TD]ag[/TD]
[TD]ah[/TD]
[/TR]
[TR]
[TD]edu[/TD]
[TD]charity[/TD]
[TD]aa[/TD]
[TD]data[/TD]
[TD]frce[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]x[/TD]
[TD][/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]ad[/TD]
[TD]ae[/TD]
[TD]af[/TD]
[TD]ag[/TD]
[TD]ah[/TD]
[/TR]
[TR]
[TD]edu[/TD]
[TD]charity[/TD]
[TD]aa[/TD]
[TD]data[/TD]
[TD]frce[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]x[/TD]
[TD][/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]