From: 7stud -- Date: 2012-09-15T03:56:36+09:00 Subject: Re: want to get string between specialchars at endof the string str = "tesubyrails " first, second = str.split second = second[1..-1] puts first, second --output:-- tesubyrails test@gmail.com> -- Posted via http://www.ruby-forum.com/.