Gunnar Hjalmarsson schreef:
> [EMAIL PROTECTED]:

>> I have data in a text
>> file where the important thing I want to extract is 
>> between two blank lines.
> 
> Assuming the data has been slurped into $_ :
> 
>      print "$1\n" while /\n\n(.+)(?=\n\n)/g;

Or /\n[[:blank:]]*\n(.+)\n[[:blank:]]*\n/ 
if "blank" includes blanks. :) 

-- 
Affijn, Ruud

"Gewoon is een tijger."

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to