Skip to content

Find Substring

124

The Find Substring node acts as a search tool within a larger block of text. It returns the exact numerical position (index) of a "needle" string within a larger "S" string, allowing for advanced text parsing.

When to use this node: * Pattern Recognition: Determining if a specific keyword exists within a player's typed message. * Data Extraction: Finding the starting point of a value within a complex text payload so it can be extracted using a Substring node. * Offset Searching: Using the start property to skip over parts of a string and search only the remaining section.

Connectors in

  • S [type: string]
  • needle [type: string]
  • start [type: integer]

Connectors out

  • result [type: integer]

Node properties

  • needle [type: string]
  • S [type: string]
  • start [type: integer]