Re: Just another regex quetion

2003-02-04 Thread Janek Schleicher
On Sun, 02 Feb 2003 18:58:49 -0500, Wiggins D'Anconia wrote: > Konrad Foerstner wrote: > while () { >if (/^#/) { > # start new array element > push @array, $_; >} >else { > # append to last array element > $array[$#array] .= $_; Or simpler $array[-1]

Re: Just another regex quetion

2003-02-03 Thread Rob Dixon
Konrad Foerstner wrote: > Hi folks, > > an new question about the mystery of regexs: > > I want to store some parts of a file wich are separetet by "#". Each > each part should become an entry of an array. example: > > " > # foobar > nothing important > nothing interesting > # bar foot > lululul >

Re: Just another regex quetion

2003-02-02 Thread M A Ponnambalam
Wiggins d'Anconia wrote: > > Konrad Foerstner wrote: > > Hi folks, > > > > an new question about the mystery of regexs: > > > > I want to store some parts of a file wich are separetet by "#". Each each > > part should become an entry of an array. example: > > > > " > > # foobar > > nothing importa

Re: Just another regex quetion

2003-02-02 Thread Wiggins d'Anconia
Konrad Foerstner wrote: Hi folks, an new question about the mystery of regexs: I want to store some parts of a file wich are separetet by "#". Each each part should become an entry of an array. example: " # foobar nothing important nothing interesting # bar foot lululul lalala lalala # foobar2

Just another regex quetion

2003-02-02 Thread Konrad Foerstner
Hi folks, an new question about the mystery of regexs: I want to store some parts of a file wich are separetet by "#". Each each part should become an entry of an array. example: " # foobar nothing important nothing interesting # bar foot lululul lalala lalala # foobar2 Rumba-Samba-Tango " (oka