Double "\" to "\\" File path conversion problem?

Hi;
I would like to convert the file path to transfer the file, but I could not make it into the following file extension I just want to enter the double “” after the drive.

How can I do with String Manipulation or String Replacer

E:\KNIME_DATA_TRASFER_MINER\file\File_1\Csv\Data_Tranfer_File.csv

**E:\**KNIME_DATA_TRASFER_MINER\file\File_1\Csv\Data_Tranfer_File.csv

the result needs to be like this, but it doesn’t
image

Hi there!

If it is only doubling the “” character then using String Manipulation node with following syntax in replace function should do the trick:
replace($column1$,":\\" ,":\\\\" )

Backslash has a special meaning so you need one more before each for compiler to recognize it. For example quote character to be recognized also needs backslash before.

To help us keep forum better feel free to hit Solution button if answer helps you :slight_smile:

SolutionButton

Br,
Ivan

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.