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]+)\\/(.*?)\\/(.*?);version=(\\d*)")
  8. match := re.FindStringSubmatch("/data/1221a7f47-84c1-445e-a615-ff82d92e2eaa/article/jane;version=1493756861347")
  9. fmt.Println(match)
  10. }
Success #stdin #stdout 0s 3276KB
stdin
Standard input is empty
stdout
[1221a7f47-84c1-445e-a615-ff82d92e2eaa/article/jane;version=1493756861347 1221a7f47-84c1-445e-a615-ff82d92e2eaa a615- article jane 1493756861347]