Re: regex extraction problem
- From: krahnj@xxxxxxxxx (John W. Krahn)
- Date: Sun, 28 May 2006 00:20:35 -0700
tom arnall wrote:
the following code:
$_='abcd';
@f = /(x)(y)|(a)(b)/;
makes the first two cells of '@f' to be undefined, then puts 'a' and 'b' in
the third and fourth cells. how do i get the system to put 'a' and 'b' in the
first two cells and to produce no undefined cells?
@f = grep defined, /(x)(y)|(a)(b)/;
John
--
use Perl;
program
fulfillment
.
- Follow-Ups:
- Re: regex extraction problem
- From: Tom Arnall
- Re: regex extraction problem
- References:
- regex extraction problem
- From: Tom Arnall
- regex extraction problem
- Prev by Date: regex extraction problem
- Next by Date: regular expression problem ? and * characters
- Previous by thread: regex extraction problem
- Next by thread: Re: regex extraction problem
- Index(es):
Relevant Pages
|
|