The Go Cookbook

Maintained by SuperOrbital.

A community built and contributed collection of practical recipes for real world Golang development.

View project on GitHub

Detecting All Substrings

How do I gather a list of all substrings matching a pattern?

Finding All Matches

  • regexp.FindAllString
  • regexp.FindAllStringIndex