regexmod

package module
v0.0.0-...-dcc30ce Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompilePattern

func CompilePattern(pattern string, regexProperties RegexProperties) (*regexp2.Regexp, error)

Types

type RegexProperties

type RegexProperties struct {
	MatchLine       bool   `json:"match_line"`
	CaseInsensitive bool   `json:"case_insensitive"`
	Type            string `json:"type"`
	Confidence      string `json:"confidence"`
}

func DetermineProperties

func DetermineProperties(pattern string, file string, matchLine bool) RegexProperties

Jump to

Keyboard shortcuts

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