# Extract URLs

> Get a list of URLs from a string.

- ID: `extract_urls`
- Type: Block
- Category: [Strings](https://inventor.bot/docs/reference/blocks/strings.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `text` | yes | String to search for links. | e.g. `"Check out https://example.com and https://inventor.bot"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `urls` | Comma separated list of URLs. | e.g. `"https://example.com,https://inventor.bot"` |
| `count` | Number of links found. | e.g. `"2"` |

**Example**

```go
extractUrls := extract_urls(Args{text: "Check out https://example.com and https://inventor.bot"})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "URLs: " + extractUrls.urls,
})
```