Registry / utility / oriser-regroup

oriser-regroup

JSON →
library0.0.0-20230527212431-1b00c9bdbc5bgogounverified

A Go library for extracting named groups from regular expressions with struct mapping.

go get github.com/oriser/regroup
INSTALL
IMPORT
SIG · ORISER-REGROUP
O
oriser-regroup
utilitygov0.0.0-20230527212431-1b00c9bdbc5b
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.

regroup
✓ github.com/oriser/regroup

Matches a string and extracts named groups into a struct.

package main import ( "github.com/oriser/regroup" ) type Data struct { Name string `regroup:"name"` Age int `regroup:"age"` } func main() { re := regroup.MustCompile(`(?P<name>\w+) is (?P<age>\d+)`) var data Data re.MatchString("Alice is 30", &data) println(data.Name, data.Age) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20230527212431-1b00c9bdbc5blatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
oriser-regroup — go get oriser-regroup · libregistry