pregexp

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPathValues

func ApplyPathValues(pat string, values map[string]string, onceIfDuplicated bool) string

func Match

func Match(pattern, text string) ([][]string, error)

func MatchOne

func MatchOne(pattern, text string) ([]string, error)

func MatchOneThen

func MatchOneThen(pattern, text string, subIdx int) (string, error)

func MustCompile

func MustCompile(pattern string) *regexp.Regexp

func NamedMatchOne

func NamedMatchOne(pattern, text string) (map[string]string, error)

func ReplaceAllSubmatchFunc

func ReplaceAllSubmatchFunc(pattern, str string, repl func(match string, groups [][]int) string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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