Skip to main content
Released

Reverse Find Function for Strings

Related products:FME Form
  • November 22, 2022
  • 1 reply
  • 15 views
rmurphy
danilo_fme
tcrossman
  • rmurphy
    rmurphy
  • danilo_fme
    danilo_fme
  • tcrossman
    tcrossman

rmurphy
Contributor

It would be very helpful to have a "Find" function for strings that search for the presence of one or more characters starting with the last character in the string and moving from right to left (i.e. a "Reverse Find"). The particular use case I was trying to address was to search for "" so as to find the last subdirectory in a part in order to get the path of its parent directory using the "Left" function to grab the leftmost characters of my original path up to but not after the leftmost occurrence of "/" in the string.


For example @Left('C:acd',@StringLength('C:acd')-@ReverseFindString('C:acd','',-1,caseSensitive=TRUE) = 'C:ac'

This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

1 reply

LizAtSafe
Safer
Forum|alt.badge.img+15
  • Safer
  • June 15, 2024
https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Form/!Transformer_Parameters/AI-Assist.htm

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