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))
}