Find Last Text Position
File:TArduinoFindLastText Position.png
Summary
Use this component to find the position (index) of the last occurrence of a specified text in a string.
Description
Use this component to find the position (index) of the **last occurrence** of a specified text within an input string. It scans the entire input text and returns the index of the last match found.
This is useful for cases where you need to process or extract data starting from the final appearance of a certain word, phrase, or character in a string. You can optionally make the search **case-insensitive** by enabling the Ignore Case property.
If the specified text is not found, the Missing pin will output a clock signal, allowing you to trigger alternative actions.
Diagram:
Categories
Category Text - Text components category
Properties
- Enabled - Enables or disable the component.
- Ignore Case - Set to True to ignore character case when searching.
- Text - The text to search for in the input string.