The tool you are looking for is most probably the regex module: https://pkg.go.dev/regexp
BR Roland Am Mittwoch, 26. Januar 2022 schrieb Victor Giordano <vitucho3...@gmail.com >: > Thanks for the insight again. It is appreciated. > Till next time. > V > El mar, 25 ene 2022 a las 18:05, Ian Lance Taylor (<i...@golang.org>) escribió: >> >> On Tue, Jan 25, 2022 at 12:45 PM Victor Giordano <vitucho3...@gmail.com> wrote: >> > >> > Thanks Ian, I will take your advice and use another approach, I regret this cuz it would be nice to have something already working. >> > >> > Without any intent to offense or say something hard, as a client of the library it kind looks quite buggy, the parenthesis are still an issue disregarding that the values are actually space-delimited. The error messages clearly are an invitation to see the source for deeper understanding rather than given any clues. >> >> Your newer example is still working as documented. The %s swallows >> everything up to the space, including the right parenthesis. Then >> there is nothing to match the right parenthesis in the format string. >> >> This behavior dates back to the C function sscanf that the Go code is >> based on. The %s code can be useful for space-separated fields, but >> is not very useful for anything else. >> >> Ian > > > -- > V > > -- > You received this message because you are subscribed to the Google Groups "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAPUu9sv-bF7KM_xTdPCP9SP%2BuCarz04DvjKGBuvS92sYV%2BP4iQ%40mail.gmail.com . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CA%2B8p0G3emJJHU6dtnTH1i4Rfkk2rNLWrSoH5_59a2BrHWVrsDg%40mail.gmail.com.