golang regexp utils for common use
To get the package, execute:
go get github.com/gofika/regexputil
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)
}