From: Joel Pearson Date: 2013-04-17T07:28:21+09:00 Subject: Re: How to get the only the partial of text Oops, I missed the final part. This one should do it: my_string.scan /-([^ ]+)/ http://www.rubular.com/r/hUH1c4amH1 -- Posted via http://www.ruby-forum.com/.