--- title: findRE description: Returns a slice of strings that match the regular expression. categories: [functions] menu: docs: parent: functions keywords: [regex] signature: - "findRE PATTERN INPUT [LIMIT]" - "strings.FindRE PATTERN INPUT [LIMIT]" relatedfuncs: [findRESubmatch, replaceRE] --- By default, `findRE` finds all matches. You can limit the number of matches with an optional LIMIT parameter. {{% 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)