From: Ross Bamford Date: 2006-03-01T21:40:47+09:00 Subject: Re: Regex replacement problem---replace every n-th On Wed, 2006-03-01 at 21:36 +0900, I forgot: > There's probably a better way to do this, but here's a 'metaregex' idea: > + rep = "\n" > > str = "1 20 3 400 5 60 7 800 9 0 " > # => "1 20 3 400 5 60 7 800 9 0 " -- Ross Bamford - rosco@roscopeco.REMOVE.co.uk