Dinamic regex and Column Filter

The Column Filter node does not support dynamic regexes passed via flow variables. I build this piece of workflow to select dinamically group of column to display in a table view (I have to much column!!) but it isn’t work. The same Regex passed via flow variable work regularly if written “manually” in the node. Below you’ll find the piece of workflow.

Does anyone have any solutions?

Thanks in advance!

I just checked in my KNIME LTS 5.8.3 and it works.

In Variable Expression I created the variable “RegExStr” with “string(“.*length”)”

  • Then right click on the “Column Filter” and select “Configure Flow Variables”,
  • unfold name_pattern and enter the Variable in the pattern section

2 Likes

Hi, thank you for answering. Is it possible that the problem stay in the new Colum Filter, I see that you used the legacy version.

I had to find another solution to dynamically filter groups of columns because I couldn’t get it right with regex.

Hi @Guglielmo , which version of KNIME are you using? Perhaps you could upload a small workflow with your attempted regex in a flow variable to demonstrate what you are seeing so that we can take a look.

1 Like

I was just using the Classic UI in my screenshot, but with Modern UI it does not make any difference.

and then:

You can download the workflow right here:

3 Likes