Skip to content

regexp-find-all-zero

Default severity: warning

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

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