Skip to main content
Solved

Remove text wrapping

  • February 2, 2022
  • 4 replies
  • 108 views

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3422 replies
  • 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
  • 212 replies
  • 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

@ebygomm​ 

thanks for your reply ,

we are dealing with a different doc

sometimes return, sometime both

 


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3422 replies
  • 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
  • 212 replies
  • 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

Yes it working

Thanks so mutch