regexp

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 125

Documentation

Index

Constants

View Source
const Name = "regexp"

Variables

This section is empty.

Functions

func CharFilterConstructor

func CharFilterConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.CharFilter, error)

Types

type CharFilter

type CharFilter struct {
	// contains filtered or unexported fields
}

func New

func New(r *regexp.Regexp, replacement []byte) *CharFilter

func (*CharFilter) Filter

func (s *CharFilter) Filter(input []byte) []byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL