--- title: strings.FindRE linkTitle: findRE description: Returns a slice of strings that match the regular expression. categories: [functions] keywords: [] menu: docs: parent: functions function: aliases: [findRE] returnType: string signatures: ['strings.FindRE PATTERN INPUT [LIMIT]'] relatedFunctions: - strings.FindRE - strings.FindRESubmatch - strings.Replace - strings.ReplaceRE aliases: [/functions/findre] --- By default, `findRE` finds all matches. You can limit the number of matches with an optional LIMIT argument. {{% readfile file="/functions/_common/regular-expressions.md" %}} This example returns a slice of all second level headings (`h2` elements) within the rendered `.Content`: ```go-html-template {{ findRE `(?s)