Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Replacetextprocessor remove blank lines

avatar
Expert Contributor

Hi All,for eg

Thanks a lot this awesome community

I was trying to modify my flowfile to not have a blank line. for example right now it is like

This is message1

This is message2

I want to remove that middle blank line, so it wil become

This is message1
This is message2

I am using replacetextprocessor , but not able to figure out the replacement value?

Attached is my attempt, any pointers or help

Thanks

nifireplace.png

Dheeru

1 ACCEPTED SOLUTION

avatar
Rising Star
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
4 REPLIES 4

avatar
Expert Contributor

I treid using the replacement text as (.*)\n but then it is showing

This is message1nThis is message2n

any ideas?

Thanks Dheeru

avatar
Rising Star
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Expert Contributor

@Adrian Oprea Thanks a lot, appreciate it, almost forgot about the shift +enter 🙂 Thanks again

avatar
Rising Star

yeah i know is not very intuitive 🙂