How can I use Delimiter | in csvservice ?

0
Hi all, I have  tested with “,” for Delimiter , It’s OK , but I have changed Delimiter to “|” it is not  work. How can I use Delimiter "|" in csvservice ? csv file a|b|v M|Emmy|2020 S|Somboon|2020    
asked
1 answers
1

I didn’t use the CsvService, but below some information about the pipe character.

The pipe is a meta character in regex, so there is a need to escape this.

In Java, it’s like this:

String lineToSplit = "a|b|c";
String[] values = lineToSplit.split("\\|");


So please set as delimiter the value \\| instead of |

answered