cancel
Showing results for 
Search instead for 
Did you mean: 

Line break in file

Ajay_Chawda
Contributor

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)

5 REPLIES 5

alchemiz
Contributor III

Hi Ajay,

See expression below

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

Thanks

Ajay_Chawda
Contributor

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

Regards,
Ajay

See sample pipeline

Test_2021_07_17.slp (3.6 KB)

Thank you it worked.