(.*) is greedy… try ([^\[]+) this should consume all till it runs into the open bracket, your next group…
On Mon, Aug 28, 2017 at 7:17 PM, Paulo Coutinho <[email protected]> wrote: > Hi, > > Well, I'm having a problem with regular expressions, so all online regexp > testers work, including those that run on go. > > But locally and on the playground does not work and I do not understand > what is wrong. > > Can anyone help me with this? Follow the code link: > > Https://play.golang.org/p/yVpU--tuSr > > Thanks. > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
