in reply to Re3: Capturing brackets within a repeat group
in thread Capturing brackets within a repeat group

...and thankyou for the correction.

I've only recently begun exploiting the possibilities of \G and /gc, and have found the docs woefully lacking on good examples. Yours is the clearest explanation/ demonstration of the \G assertion I've seen.

It should be in the manual as far as I'm concerned.


Examine what is said, not who speaks.

The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.

  • Comment on Re: Re3: Capturing brackets within a repeat group

Replies are listed 'Best First'.
Re5: Capturing brackets within a repeat group
by Hofmator (Curate) on Jan 12, 2003 at 18:03 UTC

    Thanks for the praise :)

    But do you know about the new documentation that comes with perl 5.8.0: perlrequick and perlretut?? The part concerning the \G anchor can be found in this section - and I think it's a quite good description.

    -- Hofmator