pathregexp

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package pathregexp implements regular expression search with pathname optimisations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOptimised

func IsOptimised(regex Regexp) bool

IsOptimised will return true if a Regexp object is optimised for performance.

Types

type Regexp

type Regexp interface {
	MatchString(s string) bool
}

func Compile

func Compile(expr string) (Regexp, error)

Compile parses a regular expression and returns, if successful, a Regexp object that can be used to match against text. The expression is implictly anchored at the start of each string to match.

Jump to

Keyboard shortcuts

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