regexputil

package
v0.0.0-...-d931726 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package regexutil provides additional utility functions used with regular expressions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindNamedSubmatchMap

func FindNamedSubmatchMap(re *regexp.Regexp, s string) map[string]string

FindNamedSubmatchMap tries to find named groups of a regular expression in the given string s and returns matches in a map with the name of the group as key and the match as value.

If no match for the named group was found, there will be no entry in the map therefore.

Types

This section is empty.

Jump to

Keyboard shortcuts

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