From: Phrogz Date: 2007-09-26T00:40:08+09:00 Subject: Re: Spliting input at blank line On Sep 25, 9:27 am, Arfon Smith wrote: > I'm trying to read in a file with blocks of text separated by blank > lines. How do I go about spliting the input file using the blank lines > as delimiters? my_text.split /\n\n/ Or, if you want to allow whitespace on that 'blank' line: my_text.split /\n[ \t]*\n/