Go FindAllString()

1 개요[ | ]

Go FindAllString()
package main

import (
	"fmt"
	"regexp"
)

func main() {
	re := regexp.MustCompile(`a.`)
	fmt.Println(re.FindAllString("paranormal", -1))
	fmt.Println(re.FindAllString("paranormal", 2))
	fmt.Println(re.FindAllString("graal", -1))
	fmt.Println(re.FindAllString("none", -1))
}
package main

import (
	"fmt"
	"regexp"
)

func main() {
	re := regexp.MustCompile(`o.`)
	fmt.Println(re.FindAllString("London", 1))
	fmt.Println(re.FindAllString("London", -1))
}

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}