# Find a String Between Two Substrings

Find a substring in the text that is located between two other substrings.

<table data-header-hidden><thead><tr><th width="248" valign="top"></th><th width="301" valign="top"></th></tr></thead><tbody><tr><td valign="top">Text</td><td valign="top">[Text] Input string.</td></tr><tr><td valign="top">Left Part</td><td valign="top">[Text] Left substring to find.</td></tr><tr><td valign="top">Right Part</td><td valign="top">[Text] Right substring to find. If an empty value is specified, the end of the string will be used as the right part.</td></tr><tr><td valign="top">Start Index</td><td valign="top">[Number] Index of the character from which the search for the left substring begins. 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, with the property 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">Extended Check</td><td valign="top"><p>If enabled, a check using wildcards will be used. For example: "test*", "te?t".</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 the property is enabled, the case of characters will be considered during the check; otherwise, it will be ignored.</td></tr><tr><td valign="top">Search Until Newline</td><td valign="top">If the "Right Part" property is not specified, this property defines the search for the right part. If enabled, the newline character (or end of string) will be considered the right part; if the property is disabled, the end of the string will be used.</td></tr><tr><td valign="top">Start Index</td><td valign="top">[Number] Index of the first character of the found string.</td></tr><tr><td valign="top">End Index</td><td valign="top">[Number] Index of the next character after the found string.</td></tr><tr><td valign="top">Found Substring</td><td valign="top">[Text] Value of the found substring.</td></tr><tr><td valign="top">Substring Length</td><td valign="top">[Number] Length 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 define 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" - main information output;</li><li>"Detailed" - detailed information output.</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 Text</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-stroku-mezhdu-dvukh-podstrok-findtextbetween.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.
