# Regex Find Matches List

> Find matches of a regular expression in a string.

- ID: `regex_find_list`
- Type: Block
- Category: [Regex](https://inventor.bot/docs/reference/blocks/regex.md)

> Returns the first 20 matches. For more, use Regex Find Matches Iterator.

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `regex` | yes | Regular expression to search with. | e.g. `"(\\\\w+)"` |
| `text` | yes | Text to search through. | e.g. `"foo bar baz"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `match_1` | Matched text. | e.g. `"foo"` |
| `match_2` | Matched text. | e.g. `"foo"` |
| `match_3` | Matched text. | e.g. `"foo"` |
| `match_4` | Matched text. | e.g. `"foo"` |
| `match_5` | Matched text. | e.g. `"foo"` |
| `match_6` | Matched text. | e.g. `"foo"` |
| `match_7` | Matched text. | e.g. `"foo"` |
| `match_8` | Matched text. | e.g. `"foo"` |
| `match_9` | Matched text. | e.g. `"foo"` |
| `match_10` | Matched text. | e.g. `"foo"` |
| `match_11` | Matched text. | e.g. `"foo"` |
| `match_12` | Matched text. | e.g. `"foo"` |
| `match_13` | Matched text. | e.g. `"foo"` |
| `match_14` | Matched text. | e.g. `"foo"` |
| `match_15` | Matched text. | e.g. `"foo"` |
| `match_16` | Matched text. | e.g. `"foo"` |
| `match_17` | Matched text. | e.g. `"foo"` |
| `match_18` | Matched text. | e.g. `"foo"` |
| `match_19` | Matched text. | e.g. `"foo"` |
| `match_20` | Matched text. | e.g. `"foo"` |

**Example**

```go
regexFind := regex_find_list(Args{regex: "(\\\\w+)", text: "foo bar baz"})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Match 1: " + regexFind.match_1,
})
```