07-17-2021 04:41 AM
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)
07-17-2021 05:35 AM
Hi Ajay,
See expression below
“abc’def’por’xyz’”.replace(/‘/g,"’\n")
Thanks
07-17-2021 06:07 AM
Thank you for quick response.
i tried using above expression.
but results are same.
Regards,
Ajay
07-17-2021 06:18 AM
See sample pipeline
Test_2021_07_17.slp (3.6 KB)
07-17-2021 06:47 AM
Thank you it worked.