From: Sebastian Hungerecker Date: 2007-09-21T03:02:58+09:00 Subject: Re: Splitting a string by x number of lines lrlebron@gmail.com wrote: > I am trying to figure out how to split a string into chunks of 25 > lines or less to pass to another function > > Any ideas on how I could approach this? string.scan(/(?:.*?\n){1,25}/) HTH, Sebastian -- NP: Die Apokalyptischen Reiter - Himmelskind Jabber: sepp2k@jabber.org ICQ: 205544826