From: Joel Pearson Date: 2013-04-17T07:25:01+09:00 Subject: Re: How to get the only the partial of text How about this? my_string.scan /-(.+)(?=:)/ http://www.rubular.com/r/vFIr2py40i -- Posted via http://www.ruby-forum.com/.