Re: basic regex back reference



gcr wrote:
In article <252e$447d55a6$c2abfc64$22218@xxxxxxxxxxxxxxxx>,
Aukjan van Belkum <aukjan@xxxxxxxxx> wrote:

my @array = ($output =~ m/(\[+[*\d]+\])/g);

works great! thanks!
(I still don't understand but the pain is gone)

The original only matches once(?)
and/or I'm not understanding the $1 $2 functionality(?)

$1 contains the match in the first set of parentheses and $2 contains the
match in the second set of parentheses. You only have one set of parentheses
in that pattern.


John
--
use Perl;
program
fulfillment
.