# Find Substring in Text

Find a substring in the text.

<table data-header-hidden><thead><tr><th width="235" valign="top"></th><th width="327" valign="top"></th></tr></thead><tbody><tr><td valign="top">Text</td><td valign="top">[Text] Input string.</td></tr><tr><td valign="top">Substring</td><td valign="top">[Text/List] The substring or list of substrings to search for. An array can be specified using the command <code>@("text1","mes")</code>.</td></tr><tr><td valign="top">Start Index</td><td valign="top">[Number] The starting position for the search. Indexing starts at 0.</td></tr><tr><td valign="top">Whole Word</td><td valign="top"><p>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".</p><p>If the property is disabled, the value "Value" will be found in both examples.</p></td></tr><tr><td valign="top">Check Type</td><td valign="top"><p>Select the type of check.</p><p>Possible values:</p><ul><li>"Include" - all specified substrings must be present in the string;</li><li>"Exclude" - all specified substrings must not be contained in the string;</li><li>"IncludeOne" - if at least one substring is found in the text, the check is successful;</li><li>"ExcludeOne" - if at least one substring is absent from the text, the check is successful;</li><li>"IncludeClosestOne" - when specifying a list of values, the check follows the "closest match" rule.</li></ul></td></tr><tr><td valign="top">Reverse Check</td><td valign="top">When checking, swap the input values "Text" and "Substring".</td></tr><tr><td valign="top">Extended Check</td><td valign="top"><p>If enabled, the check will use wildcard characters (Wildcard). For example: <code>"test*"</code>, <code>"te?t"</code>.</p><p>If the property is disabled, the check will be performed in a simple way and will be faster.</p></td></tr><tr><td valign="top">Case Sensitive</td><td valign="top">If enabled, the check will consider the case of characters; otherwise, it will be ignored.</td></tr><tr><td valign="top">String Index</td><td valign="top">[Number] Returns the zero-based index of the first occurrence of the specified string value.</td></tr><tr><td valign="top">Found String</td><td valign="top">[Text] Returns the value of the found substring.</td></tr><tr><td valign="top">Error Handling Level</td><td valign="top"><p>Select the error handling level. Possible values:</p><ul><li>"Default" - by default;</li><li>"Ignore" - errors are ignored;</li><li>"Handle" - errors are handled.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error Output Direction</td><td valign="top"><p>Select the output direction from the block in case of an error. Possible values:</p><ul><li>"Default" - by default;</li><li>"Right" - to the right;</li><li>"Bottom" - down.</li></ul><p>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).</p><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Message Level</td><td valign="top"><p>Select the message level that blocks will output during operation. Possible values:</p><ul><li>"Default" - by default;</li><li>"Release" - output is disabled;</li><li>"Debug" - outputs main information;</li><li>"Detailed" - outputs detailed information.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error Message</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sherparpa.ru/en/sherpa-rpa/sherpa-designer/spravochnik-blokov/tekst-string-automation/naiti-podstroku-v-tekste-containsstring.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
