# Get a List of Substrings by Regular Expression

Get a list of substrings from text using regular expression search.

<table data-header-hidden><thead><tr><th width="229" valign="top"></th><th width="311" valign="top"></th></tr></thead><tbody><tr><td valign="top">Text</td><td valign="top">[Text] Input string.</td></tr><tr><td valign="top">Pattern</td><td valign="top">[Text] Regular expression by which the string will be split.</td></tr><tr><td valign="top">Parameters</td><td valign="top">Parameters for performing the search.</td></tr><tr><td valign="top">Timeout</td><td valign="top">The maximum time to wait for the operation to complete in seconds. If the "Pattern" is incorrectly formed, it will exit with an error after the specified time.</td></tr><tr><td valign="top">Result</td><td valign="top">[List] List of strings after splitting.</td></tr><tr><td valign="top">Groups</td><td valign="top">[List] List of groups that match the regular expression.</td></tr><tr><td valign="top">Group List</td><td valign="top">[List] List of dictionaries of groups, where the key of the dictionary is the name of the group in the regular expression.</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" - 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">Message Level</td><td valign="top"><p>Select the message level that blocks will output during operation. Possible values:</p><ul><li>"Default" - 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/poluchit-spisok-podstrok-po-regulyarnomu-vyrazheniyu-getlistregex.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.
