Filterring out columns

Hello KNIMErs,

I’m facing a challenge that I hoped shouldn’t be a challenge at all :blush:

I have two input tables:

The first (sample) table with header row and data below. Header might contain ‘ #’ string or not

The second (sample) table with reference header row. No ‘ #’ string here

I would like to filter out some columns and keep those columns from 1st table which have headers ‘similar’ to reference header row, like below

Of course, the full list of columns is longer then in the above example, and the set of reference columns is dynamic (it changes each time the workflow is executed).

How to do this?

I have tried several ways, but nothing that works for me so far.

Happy KNIMEing,

Kaz