Find Substring in Text#

Find a substring in the text.

Text[Text] Input string.
Substring[Text/List] The substring or list of substrings to search for. An array can be specified using the command @("text1","mes").
Start Index[Number] The starting position for the search. Indexing starts at 0.
Whole Word

Word boundaries will be considered during the search. For example, when the property is enabled, the value "Value" will be found in the text "This Value", but will not be found in the text "This ValueTest".

If the property is disabled, the value "Value" will be found in both examples.

Check Type

Select the type of check.

Possible values:

  • "Include" - all specified substrings must be present in the string;
  • "Exclude" - all specified substrings must not be contained in the string;
  • "IncludeOne" - if at least one substring is found in the text, the check is successful;
  • "ExcludeOne" - if at least one substring is absent from the text, the check is successful;
  • "IncludeClosestOne" - when specifying a list of values, the check follows the "closest match" rule.
Reverse CheckWhen checking, swap the input values "Text" and "Substring".
Extended Check

If enabled, the check will use wildcard characters (Wildcard). For example: "test*", "te?t".

If the property is disabled, the check will be performed in a simple way and will be faster.

Case SensitiveIf enabled, the check will consider the case of characters; otherwise, it will be ignored.
String Index[Number] Returns the zero-based index of the first occurrence of the specified string value.
Found String[Text] Returns the value of the found substring.
Error Handling Level

Select the error handling level. Possible values:

  • "Default" - by default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are handled.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Error Output Direction

Select the output direction from the block in case of an error. Possible values:

  • "Default" - by default;
  • "Right" - to the right;
  • "Bottom" - down.

This property allows you to determine the output direction in case of errors for blocks that do not contain the "If Error" connector (for example, the "Condition" block).

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Message Level

Select the message level that blocks will output during operation. Possible values:

  • "Default" - by default;
  • "Release" - output is disabled;
  • "Debug" - outputs main information;
  • "Detailed" - outputs detailed information.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Error Message[Text] Returns detailed information about the error in case of incorrect execution of the block.