Hello, thank you, this seams to work. But why does it need to be doubly escaped and why does it only remove commas?
The last question I was able to answer myself: there are no other values except for the comma and the period that are between two numbers and not part of another group.
Hi @KasimirNepomuk , the “double escaping” is generally needed in KNIME (and some other languages) when the regex is in a literal string within a script. This is because KNIME first has to interpret the string, which can also contain escapes. So in the first level of parsing, the single `\` is treated as an escape within the script, and this is before it is passed to the regex engine, so what gets passed to regex has had a single escape already stripped.
Hello The provided WF seems to be empty for me. You may not need a regexReplace(), you can test with standard replace() in a ‘String Manipulation’ node:
replace($Value$, ".", "")
Regarding double scape… some nodes require it aiming to translate from standard regex syntax to supported Java syntax like in ‘String Manipulation’ or ‘Expression’ nodes, then double scape is needed:
This syntax seems to literal for me and it has many fail cases: