From: Josh Cheek Date: 2010-07-04T03:12:29+09:00 Subject: Re: Best practices resource/guidance for strings --001636458c2059ae8d048a7fa57a Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jun 30, 2010 at 4:10 PM, Josh Cheek wrote: > You can use s.delete('+') instead of s.gsub('+','') and it will be faster, > prettier, and more expressive. > This is wrong, delete removes the intersection of characters, you do need to use gsub. I guess the speed comparison is not relevant, but it is still uglier and less expressive -- but more correct. --001636458c2059ae8d048a7fa57a--