func (format *RegExp) Configure(conf core.PluginConfigReader) {
	var err error
	if conf.GetBool("Posix", true) {
		format.expression, err = regexp.CompilePOSIX(conf.GetString("Expression", "(.*)"))
	} else {
		format.expression, err = regexp.Compile(conf.GetString("Expression", "(.*)"))
	}
	conf.Errors.Push(err)
}
Configure initializes this formatter with values from a plugin config.
package format
import (
	"regexp"
	"gollum/core"
)
type RegExp struct {
	core.SimpleFormatter `gollumdoc:"embed_type"`
	expression           *regexp.Regexp
	template             []byte `config:"Template" default:"${1}"`
}
func init() {
	core.TypeRegistry.Register(RegExp{})
}