Answer the question
In order to leave comments, you need to log in
How to pick up a number?
Links look like this:
https://site.com/@name/jpg/12345678910111212
https://site.com/@name/12345678910111212/jpg
https://site.com/@124341/12345678910111212/jpg
https://site.com/@12sccss4341/12345678910111212/jpg
12345678910111212
str := "https://site.com/@name/jpg/12345678910111212"
re := regexp.MustCompile(`(?m)(\d+)$`)
fmt.Println(re.FindString(str))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question