in reply to Re^3: PCRE: Repeating Subpattens After Intervening Characters
in thread PCRE: Repeating Subpattens After Intervening Characters

I'm confused -- in what sense doesn't it capture properly?
DB<1> $x = qr/(\d\s+foo)/; DB<2> $y = 'alpha beta 1 foo gamma delta 2 foo epsilon omega'; DB<3> @z = $y =~ /$x[^\r\n]*$x/; DB<4> x @z 0 '1 foo' 1 '2 foo' DB<5>
However, I can vaguely see problems getting the capturing desired, if it isn't conveniently what happens when trying to scale.

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^5: PCRE: Repeating Subpattens After Intervening Characters
by ikegami (Patriarch) on Sep 15, 2005 at 01:28 UTC
    hum, my test program must have been buggy. I stand corrected.