regex

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(text string, pattern *Pattern) (bool, error)

func CheckAll

func CheckAll(text string, patterns []*Pattern) (bool, error)

CheckAll returns true if all patterns match

func CheckAny

func CheckAny(text string, patterns []*Pattern) (bool, error)

CheckAny returns true if any pattern matches

func ValidatePatterns

func ValidatePatterns(patterns []string) error

Types

type Expressions

type Expressions struct {
	Patterns []*Pattern
}

type Pattern

type Pattern struct {
	Expression *regexp2.Regexp
}

func Compile

func Compile(pattern string) (*Pattern, error)

Jump to

Keyboard shortcuts

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