Solved

Remove text wrapping

  • 2 February 2022
  • 4 replies
  • 15 views

Badge +10

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

icon

Best answer by ebygomm 2 February 2022, 18:32

View original

4 replies

Userlevel 1
Badge +10

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

Badge +10

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

 

Userlevel 1
Badge +10

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

Badge +10

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 

 

Reply