Skip to main content
Solved

How to reverse character order in a string using FME?


I would like to reverse character order in the string e.g. from "Mariusz 123 #$" to "$# 321 zsuiraM". Do you know any FME function or transformer to perform this? I do not know Pyton.

Best answer by ebygomm

Use the string searcher to get every character as a list element, sort the list by startIndex in reverse order, then concatenate the list

 

reverse_string.fmw

 

Or if you did want to use a pythoncaller

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

2 replies

ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • Best Answer
  • March 28, 2019

Use the string searcher to get every character as a list element, sort the list by startIndex in reverse order, then concatenate the list

 

reverse_string.fmw

 

Or if you did want to use a pythoncaller


  • Author
  • March 28, 2019

@egomm Thank you.


Reply


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