Guest User

Untitled

a guest
Apr 21st, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.42 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4.     "regexp"
  5.     "fmt"
  6. )
  7.  
  8. func main() {
  9.  
  10.     s := regexp.MustCompile(`([cbdefghijklnrtuv]{0,16})([cbdefghijklnrtuv]{32})`)
  11.     result2 := s.FindAllStringSubmatch(string("cccccccccccccccccccccccccccccccccccccccccccccccc"), -1)
  12.     if (result2 != nil) {
  13.     fmt.Printf("Result3: %s\n",result2[0][1]) // merasdfasdfasdfa
  14.     fmt.Printf("Result4: %s\n",result2[0][2]) // merasdfasdfasdfamerasdfasdfasdfa
  15.     }
  16.    
  17.  
  18.  
  19. }
Add Comment
Please, Sign In to add comment