multire

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiRE

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

MultiRE

func InitRegex

func InitRegex(regexStrings []string) MultiRE

InitRegex contructs a new instance of multiRE and populates it with compiled Regular Expressions. The Expressions are based on a provided string slice.

func (*MultiRE) Extend

func (mre *MultiRE) Extend(s string)

Extend adds a single Regular Expression to an existing multiRE instance

func (*MultiRE) Match

func (mre *MultiRE) Match(s string) bool

Match returns true if a given string matches any Regular Expression in a multiRE instance

Jump to

Keyboard shortcuts

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