golang
Regexp :
package main
import "fmt"
import "regexp"
func main() {
rex := regexp.MustCompile(`\[\[([^\]]+)\]\]`)
fmt.Println(rex.FindAllStringSubmatch("[[1]] , , , [[2]]dfd",-1))
}
Regexp :
package main
import "fmt"
import "regexp"
func main() {
rex := regexp.MustCompile(`\[\[([^\]]+)\]\]`)
fmt.Println(rex.FindAllStringSubmatch("[[1]] , , , [[2]]dfd",-1))
}
暂无评论。
评论功能维护中,当前仅展示历史评论。