From: Chris Morris Date: 2012-05-01T01:53:55+09:00 Subject: Re: delete character from array --f46d0401fde78b04ce04bee84cb7 Content-Type: text/plain; charset=ISO-8859-1 This is a little blunt, but may be what you need: '123123123123'.scan(/(\w\w)\w/).to_s => "12121212" -- Chris http://livingsocial.com | http://clabs.org --f46d0401fde78b04ce04bee84cb7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable This is a little blunt, but may be what you need:

'123123123123'.scan(/(\w\w)\w/).to_s
=
=3D> "12121212"=A0


=
--
Chris
htt= p://livingsocial.com=A0|=A0http://clabs.org

--f46d0401fde78b04ce04bee84cb7--