Subject: Re: gsub not working to replace a 'Chinese' Charater.
From: Ryan Smith <sunraise2005 gmail.com>
Date: Fri, 29 Jan 2010 14:13:36 +0900
References: 356042356081
In-reply-to: 356081
I found my mistake is using incorrect reg match, it works after change
to
s=s.gsub(/#{cnarray[i]}/, x.to_s)
thanks everyone!
--
Posted via http://www.ruby-forum.com/.