From: Milan Dobrota Date: 2009-03-14T19:16:43+09:00 Subject: Re: regular expression / gsub question You can also do a filename.split(/_/)[1] which is probably not that efficient but you can get all three parts of the string. -- Posted via http://www.ruby-forum.com/.