template/funcs.go
func regexReplaceAll(re, pl, s string) (string, error) {
	compiled, err := regexp.Compile(re)
	if err != nil {
		return "", err
	}
	return compiled.ReplaceAllString(s, pl), nil
}
func regexReplaceAll(re, pl, s string) (string, error) {
	compiled, err := regexp.Compile(re)
	if err != nil {
		return "", err
	}
	return compiled.ReplaceAllString(s, pl), nil
}
func regexReplaceAll ( re , pl , s string ) ( string , error ) { compiled , err := regexp . Compile ( re ) if err != nil { return " " , err } return compiled . ReplaceAllString ( s , pl ) , nil }
// regexReplaceAll replaces all occurrences of a regular expression with
// the given replacement value.
regexReplaceAll replaces all occurrences of a regular expression with the given replacement value .