regexutil

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAllNamedGroupsMatches added in v0.15.0

func FindAllNamedGroupsMatches(regexp *regexp.Regexp, text string) ([]map[string]string, bool)

FindAllNamedGroupsMatches finds all matches using a regex with named groups and returns a string of maps representing the values of the sub-matches as key-value pairs.

func FindNamedGroupsMatch

func FindNamedGroupsMatch(regexp *regexp.Regexp, text string) (map[string]string, bool)

FindNamedGroupsMatch finds a match using a regex with named groups and returns a map representing the values of the sub-matches as key-value pairs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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