Re: basic regex back reference
- From: "John W. Krahn" <someone@xxxxxxxxxxx>
- Date: Wed, 31 May 2006 12:39:08 GMT
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
.
- References:
- basic regex back reference
- From: gcr
- Re: basic regex back reference
- From: Aukjan van Belkum
- Re: basic regex back reference
- From: gcr
- basic regex back reference
- Prev by Date: Re: Negated Perl Regexp, Howabout qr in Modules?
- Next by Date: Re: BEGIN <> BEGIN
- Previous by thread: Re: basic regex back reference
- Next by thread: Re: basic regex back reference
- Index(es):