Skip to main content
Question

How to trim leading and trailing forward slashes from a string?

  • December 20, 2022
  • 2 replies
  • 110 views

aaron
Contributor
Forum|alt.badge.img+10
  • Contributor

I'm trying to use the AttributeTrimmer to trim forward slashes from the beginning and end of a string (e.g. - /SomeText/) but I can't find the correct escape character. Thought it was a backslash. Who knows what I need to use to trim /SomeText/ to SomeText? (FME Desktop 2020.1.2.1 - build 20624).

 

Thanks,

 

Aaron

2 replies

david_r
Celebrity
  • December 20, 2022

No escape character should be necessary, you can simply use / as the trim character.


aaron
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • December 20, 2022
david_r wrote:

No escape character should be necessary, you can simply use / as the trim character.

Confirmed. Thanks @david_r​ . That's what I tried initially - or thought I did. Must have made a misstep somewhere. Thanks again!

 

Aaron


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