matching

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package matching provides patterns for processing regexp.Regexp matches

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamedMatch

func GetNamedMatch(filter string, re *regexp.Regexp, input string) (string, bool)

GetNamedMatch will return the value of a Named Submatch for a given regexp and its matches. If there are multiple matches of the same name, first one wins

func GetNamedMatches

func GetNamedMatches(re *regexp.Regexp, input string, filter []string) map[string]string

GetNamedMatches will return a map of NamedSubmatches=Value for a Regexp and input string, filtered to the provided list when populated. If there are multiple matches of the same name, last one wins

Types

This section is empty.

Jump to

Keyboard shortcuts

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