Find Last Text Position

From Visuino
Revision as of 06:38, 11 August 2025 by Visuino (talk | contribs) (Created page with "Image: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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

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.

Pins

  • In - The Text Input pin of the component or element
  • Out - Outputs the position (0-based index) of the last found occurrence as an integer.
  • Missing - Sends a clock signal when the specified text is not found.