From: Joe Cheng Date: 2003-09-04T15:04:58+09:00 Subject: Re: Multiple gsub statements in one line possible? Forgive me for stating the obvious... Do you have to do in-place gsub? Can you get away with this?: pkg_bug_base = pkg_bug_base.gsub(//, sp_num_string).gsub(//, rel_num) "Kurt Euler" wrote in message news:C47CCC6238EFD4119C5200508B95A1000C1A5C1D@cup1ex1.portal.com... > All- > > For the string called pkg_bug_base, I'm currently using the following code to make some substitutions: > > pkg_bug_base.gsub!(//, sp_num_string) > pkg_bug_base.gsub!(//, rel_num) > > Question: Is there a way to put this all on one line? I tried this, but the code crashed here: > > pkg_bug_base.gsub!(//, sp_num_string).gsub!(//, rel_num) > > Thanks. > > -ke