Skip to content

gofika/regexputil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codecov Build Status go.dev Go Report Card Licenses

regexputil

golang regexp utils for common use

Basic Usage

Installation

To get the package, execute:

go get github.com/gofika/regexputil

Example

package main

import (
	"fmt"

	"github.com/gofika/regexputil"
)

func main() {
	bar, matched := regexputil.Match(`Foo(.+)`, "Foobar") // bar="bar" matched=True
	fmt.Printf("bar: %smatched: %v\n", bar, matched)

	matched = regexputil.IsMatch(`Foo(.+)`, "Foobar") // matched=True
	fmt.Printf("matched: %v\n", matched)
}

About

golang regexp utils for common use

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages