extractstatic
Package extractstatic extracts static parts of regexpes.
Useful to prefilter complicated regexp matches on large data sets. See prefilter benchmark for example.
Example
static, _ := extractstatic.String(`really\s?complicated.*regexp`)
fmt.Println(static) // Output: [really complicated regexp]