---
title: "regexp-find-all-zero"
description: "Detect regexp FindAll calls with a zero result limit."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# regexp-find-all-zero

**Default severity:** `warning`

A zero limit always returns no matches. Use a negative limit for all matches.

## Bad

```go
matches := expression.FindAllString(input, 0)
```

## Good

```go
matches := expression.FindAllString(input, -1)
```

Source: https://strider.gempir.com/analyzers/regexp-find-all-zero/index.mdx
