Line break in file

Hello Experts,
facing issue while writing data to new line.

Input string :- abc’def’por’xyz’

Experssion in Mapper :- _file.replaceAll(’’’,’’\n’)

Expected Result
abc’
def’
por’
xyz’

Attaching pipeline for reference.

Regards,
Ajay
testLineBreak_2021_07_17 (1).slp (5.4 KB)

Hi Ajay,

See expression below

“abc’def’por’xyz’”.replace(/’/g,"’\n")

Thanks

Thank you for quick response.
i tried using above expression.
but results are same.

Regards,
Ajay

See sample pipeline

Test_2021_07_17.slp (3.6 KB)

1 Like

Thank you it worked.