From: STEPHEN BECKER I V Date: 2004-09-29T23:34:25+09:00 Subject: scan regular expression and strings tr="meet" tr.scan(/(.)\1/) {|x| x=x+'x'} print tr What I want it to do is find doubles like the ee in meet and put an x between them. Am i doing this wrong because x is part of an array now?