regexMatcher Syntax not working

Hi @BruceV,

The double-backslash is something that not surprisingly catches a lot of people out. It is to do with the way the string is passed down to the underlying programming language, and each “layer” of interpretation tries to treat the backslash as an “escape”, so we need to add additional backslashes to pass it down correctly, by “escaping the escape character”.

A further problem in KNIME is that it is not consistent across different nodes, but the main thing to be aware of is that it can be a problem, and so something to look out for

The following similar forum thread may assist further:

1 Like