mirror of
https://gitee.com/johng/gf.git
synced 2024-12-05 05:37:55 +08:00
14 lines
199 B
Go
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)
|
|
}
|