🖥
🖥
🖥
🖥
AugeLab Studio Manual
English
Ask or search…
K
Comment on page

Find Substring

This block takes 2 strings of data and checks if one is contained in the other. Outputs as True if found.

Find Substring Node Documentation

The Find Substring node in AugeLab Studio searches for a given substring in a given string and returns the result as a boolean value. It determines whether the substring exists in the string or not.

Node Overview

The Find Substring node takes two input strings: a main text and a subtext. It outputs a boolean value indicating whether the subtext is found within the main text or not.

Node Interaction

  1. 1.
    Drag and drop the Find Substring node from the node library onto the canvas in AugeLab Studio.
  2. 2.
    Connect the main text to the Main Text input socket.
  3. 3.
    Connect the subtext to the Sub Text input socket.
  4. 4.
    The node will output a boolean value indicating whether the subtext is found within the main text to the Result output socket.

Implementation Details

The Find Substring node implements the following logic:
  1. 1.
    Input Retrieval: The node retrieves the main text and subtext from the respective input sockets.
  2. 2.
    Substring Search: It searches for the subtext within the main text using the in operator.
  3. 3.
    Result Generation: The node generates a boolean result based on whether the subtext is found within the main text.
  4. 4.
    Output: The node outputs the boolean result to the Result output socket.

Usage

  1. 1.
    Drag and drop the Find Substring node from the node library onto the canvas in AugeLab Studio.
  2. 2.
    Connect the main text to the Main Text input socket.
  3. 3.
    Connect the subtext to the Sub Text input socket.
  4. 4.
    Run the pipeline or execute the node to perform the substring search.
  5. 5.
    Retrieve the boolean result from the Result output socket.
  6. 6.
    Use the boolean result in downstream nodes or conditions to control the flow of the pipeline.

Notes

  • The Find Substring node is used to determine whether a given substring exists within a given string.
  • It returns a boolean value indicating whether the subtext is found within the main text.
  • The node performs a case-sensitive search for the subtext within the main text.
  • It can be used to perform basic string matching or filtering operations in data processing pipelines.
  • The node supports generic input data, allowing you to search for substrings in various types of strings.
  • You can connect the output of the Find Substring node to nodes or conditions that require the result of the substring search.
  • The node enhances the flexibility and modularity of your pipeline by encapsulating the substring search logic.
  • It helps in data preprocessing, text mining, pattern matching, and other string-related tasks.
  • The Find Substring node is applicable in various domains, including natural language processing, data analysis, and text processing.
  • It can be combined with other nodes and operations to perform complex string manipulations and analysis.
  • The node can be extended or customized to support additional search options, such as case-insensitive matching or regular expression matching.
  • It is recommended to connect the output of the Find Substring node to nodes or steps that require the result of the substring search.
  • The node provides a simple and efficient way to check for the presence of a substring within a string in your data pipeline.