From: David Springer Date: 2010-04-01T08:52:31+09:00 Subject: Re: how to solve this regular expression problem > s.gsub!(/#(\d+);/, "\134\134#{conv_char($)}") I meant: s.gsub!(/#(\d+);/, "\134\134#{conv_char($1)}") I'm having trouble doing copy & paste from irb under windows. David -- Posted via http://www.ruby-forum.com/.