From: "Иван Бишевац" Date: 2012-10-16T16:27:22+09:00 Subject: Re: Drop 1st and last particular character --047d7b339e73a386c504cc2815a8 Content-Type: text/plain; charset=UTF-8 Simplest method is to use Regex. 2012/10/16 ajay paswan > 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/. > > --047d7b339e73a386c504cc2815a8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Simplest method is to use Regex.

2012/10/= 16 ajay paswan <lists@ruby-forum.com>
What is the most efficient way to drop '#' from the first place and= last
place if any.

for example:
if input=3D #hithere# then output =3D hithere
if input =3D hithere# then output =3Dhithere
if input =3D #hithere then output =3Dhithere
if input =3D hithere then output=3Dhithere

--
Posted via http://= www.ruby-forum.com/.


--047d7b339e73a386c504cc2815a8--