Skip to main content
Solved

Remove text wrapping


boubcher
Contributor
Forum|alt.badge.img+11

Hello guys

is there a way we could remove the waring in the text file that looks like this

test wrapin 

and get it only in one line with "/"between each line value

the final result should get

P20201_WXL2EAO3AKAU/P20201_WXW2ECO1CVI6/[al/WX62D212NFU2

Thanks

Best answer by ebygomm

I think this in a StringReplacer with Regular Expression replace should work

(\n|\r)+

Match 1 or more line feeds or carriagereturns and replace with /

image

View original
Did this help you find an answer to your question?

4 replies

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • February 2, 2022

Do you know if the wrapping includes line feeds or carriage returns or both? If you turn syntax highlighting to FME in the text editor you should be able to see this


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • February 2, 2022
ebygomm wrote:

Do you know if the wrapping includes line feeds or carriage returns or both? If you turn syntax highlighting to FME in the text editor you should be able to see this

@ebygomm​ 

thanks for your reply ,

we are dealing with a different doc

sometimes return, sometime both

 


ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • Best Answer
  • February 2, 2022

I think this in a StringReplacer with Regular Expression replace should work

(\n|\r)+

Match 1 or more line feeds or carriagereturns and replace with /

image


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • February 2, 2022
ebygomm wrote:

I think this in a StringReplacer with Regular Expression replace should work

(\n|\r)+

Match 1 or more line feeds or carriagereturns and replace with /

image

Yes it working

Thanks so mutch 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings