From: ajay paswan Date: 2012-10-16T16:06:06+09:00 Subject: Drop 1st and last particular character What is the most efficient way to drop '#' from the first place and last place if any. for example: if input= #hithere# then output = hithere if input = hithere# then output =hithere if input = #hithere then output =hithere if input = hithere then output=hithere -- Posted via http://www.ruby-forum.com/.