Skip to main content
Released

Reverse Find Function for Strings

Related products:FME Form
  • November 22, 2022
  • 1 reply
  • 26 views

rmurphy
Contributor
Forum|alt.badge.img+8

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 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.

1 reply

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