[go-nuts] Re: regexp question

2023-02-10 Thread Jochen Voss
Hi Peter, I don't think this is the solution: https://go.dev/play/p/Ti7UEGd1BVE . I think "All" means that it can deal with several copies of the regexp, rather than returning all matches of the group. All the best, Jochen On Friday, 10 February 2023 at 16:09:04 UTC Peter Galbavy wrote: > Find

[go-nuts] Re: regexp question

2023-02-10 Thread Peter Galbavy
FindAllStringSubmatch() ? https://pkg.go.dev/regexp#Regexp.FindAllStringSubmatch On Friday, 10 February 2023 at 12:52:34 UTC Jochen Voss wrote: > Dear all, > > What happens if a group in a regular expression matches repeatedly, via > the * operator? Experimentally I found that FindStringSubmat

Re: [go-nuts] Re: Regexp question

2016-08-16 Thread Jan Mercl
On Tue, Aug 16, 2016 at 1:29 PM Damian Gryski wrote: > The match at [4 4] would be an empty match abutting a preceding match. That's it. Thanks a lot. (TIL a new word: abutting) -- -j -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsu

[go-nuts] Re: Regexp question

2016-08-16 Thread Damian Gryski
On Tuesday, August 16, 2016 at 1:00:15 PM UTC+2, Jan Mercl wrote: > > This code (A) > > package main > > import ( > "fmt" > "regexp" > ) > > func main() { > fmt.Printf("%v", > regexp.MustCompile(`a*