From: "lrlebron@..." Date: 2007-09-21T03:30:06+09:00 Subject: Re: Splitting a string by x number of lines On Sep 20, 1:02 pm, Sebastian Hungerecker wrote: > lrleb...@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: sep...@jabber.org > ICQ: 205544826 Thanks that did the trick