RE: in a regex- re-arrange $1..$n

2004-10-12 Thread West, William M
>Are you thinking of : > >( $a1,$b1,$a2,$b2,$a3,$b3,$a4,$b4,$a5,$b5 ) = $_ =~ /regexp/ ? that might be what i need- if i'm going to be working with these values alot, then i want to know what they are at the outset > >The result of a regexp ($1..$9) are returned in array context, so you c

Re: in a regex- re-arrange $1..$n

2004-10-11 Thread David le Blanc
On Mon, 11 Oct 2004 13:13:37 -0600, Wiggins d Anconia <[EMAIL PROTECTED]> wrote: > > the following is an as yet incomplete regex that i'm working on: > > > > $data = $_ =~ > > s/<(name)>(.*?)<(desc)>(.*?)<(copy)>(.*?)<(license)>(.*?)<(entry)>//xg > > Are you thinking of : ( $a1,$b1,$a2,$b2,$a3,$

RE: in a regex- re-arrange $1..$n

2004-10-11 Thread West, William M
>-Original Message- >From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] >Sent: Monday, October 11, 2004 3:14 PM >To: West, William M; [EMAIL PROTECTED] >Subject: Re: in a regex- re-arrange $1..$n > >> the following is an as yet incomplete regex that i&#

Re: in a regex- re-arrange $1..$n

2004-10-11 Thread Wiggins d Anconia
> the following is an as yet incomplete regex that i'm working on: > > $data = $_ =~ > s/<(name)>(.*?)<(desc)>(.*?)<(copy)>(.*?)<(license)>(.*?)<(entry)>//xg > > > every other capture ($1 $3 $5 $7 $9) is going to be used one way, the > other > captures will be used differently... i'm wondering

in a regex- re-arrange $1..$n

2004-10-11 Thread West, William M
the following is an as yet incomplete regex that i'm working on: $data = $_ =~ s/<(name)>(.*?)<(desc)>(.*?)<(copy)>(.*?)<(license)>(.*?)<(entry)>//xg every other capture ($1 $3 $5 $7 $9) is going to be used one way, the other captures will be used differently... i'm wondering if there's a way t