gf/.example/other/test2.go
2019-09-05 11:38:36 +08:00

14 lines
199 B
Go

package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/text/gregex"
)
func main() {
s := `-abc`
m, err := gregex.MatchString(`^\-{1,2}a={0,1}(.*)`, s)
g.Dump(err)
g.Dump(m)
}