Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "regexp"
- "fmt"
- )
- func main() {
- s := regexp.MustCompile(`([cbdefghijklnrtuv]{0,16})([cbdefghijklnrtuv]{32})`)
- result2 := s.FindAllStringSubmatch(string("cccccccccccccccccccccccccccccccccccccccccccccccc"), -1)
- if (result2 != nil) {
- fmt.Printf("Result3: %s\n",result2[0][1]) // merasdfasdfasdfa
- fmt.Printf("Result4: %s\n",result2[0][2]) // merasdfasdfasdfamerasdfasdfasdfa
- }
- }
Add Comment
Please, Sign In to add comment