fork download
  1. package main
  2. import "fmt"
  3. import "regexp"
  4.  
  5. func main(){
  6. // your code goes here
  7. re := regexp.MustCompile(`(([a-f0-9]+\-)+[a-f0-9]+)$`)
  8. match := re.FindString("nable:goat::node:8e81b867-3ce1-4c18-bd4f-27a68d5eacd4")
  9. if match == "" {
  10. fmt.Println("error")
  11. }
  12. fmt.Println(match)
  13. }
Success #stdin #stdout 0.01s 5312KB
stdin
Standard input is empty
stdout
8e81b867-3ce1-4c18-bd4f-27a68d5eacd4