Registry / utility / dlclark-regexp2

dlclark-regexp2

JSON →
library1.12.0gogounverified

Package regexp2 provides a regexp engine with advanced features similar to .NET regex.

go get github.com/dlclark/regexp2
INSTALL
IMPORT
SIG · DLCLARK-REGEXP2
D
dlclark-regexp2
utilitygov1.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

regexp2
✓ github.com/dlclark/regexp2

Compiles a case-insensitive regex and finds a match.

package main import ( "fmt" "github.com/dlclark/regexp2" ) func main() { re := regexp2.MustCompile(`(?i)hello`, 0) match, _ := re.FindStringMatch("Hello World") fmt.Println(match.String()) }
Debug
Known issues
gotcharegexp2 uses a different syntax than Go's standard regexp; some patterns may not be compatible.
fix
Refer to the regexp2 documentation for supported syntax.
affects: all
Upgrade
Version history
1.12.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
dlclark-regexp2 — go get dlclark-regexp2 · libregistry