From: ciapecki Date: 2006-09-13T04:30:46+09:00 Subject: Re: removing spaces between single characters with regual expression Thanks Gavin for your solution > irb(main):005:0> s = 'A long cat and a quick mouse met o j simpson on > the t c p stack' > => "A long cat and a quick mouse met o j simpson on the t c p stack" > > irb(main):006:0> s.gsub( /\b([a-z]) (?=[a-z]\b)/i, '\\1' ) > => "A long cat and a quick mouse met oj simpson on the tcp stack" this is exactly what I need. Is it possible to rewrite it without using lookahead (?=subexp) ? chris