If I right understand your wish, you need to use FindStringSubmatch.

On Wed, Aug 30, 2017 at 9:18 AM Marcus Franke <marcus.fra...@gmail.com>
wrote:

> On Mon, Aug 28, 2017 at 07:37:52PM -0700, Hugh S. Myers wrote:
> > (.*) is greedy… try ([^\[]+) this should consume all till it runs into
> the
> > open bracket, your next group…
>
> There is this nice webpage https://regex101.com
>
> It supports golang as regex flavor, and does a great job at
> explaining the capture groups. I use that one all the time to
> test my regular expressions.
>
> --
> 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.
> 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 golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to