From: 7stud -- Date: 2012-10-17T05:20:25+09:00 Subject: Re: Drop 1st and last particular character Have you considered python? my_str = "#hi#there#" print(my_str.strip('#')) --output:-- hi#there -- Posted via http://www.ruby-forum.com/.