gf/geg/other/test.go
2017-12-28 15:21:25 +08:00

12 lines
191 B
Go

package main
import (
"gitee.com/johng/gf/g/util/gregx"
"fmt"
)
func main() {
s, _ := gregx.Replace(`\w`, []byte("/user/list/page/2"), []byte("-"))
fmt.Println(string(s))
}