[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Regular Expression question

seebs

6/30/2007 2:56:00 AM

In message <a0d519101f6199ed9f37558d7cec5351@ruby-forum.com>, Al Cholic writes:
>Thanks. An the .. in [1..-2] means "keep everything in between" ?

Right.

So, "hello, world!"[1..-2] => "ello, world"

-s

1 Answer

Kristen

6/30/2007 3:02:00 AM

0

unknown wrote:
> In message <a0d519101f6199ed9f37558d7cec5351@ruby-forum.com>, Al Cholic
> writes:
>>Thanks. An the .. in [1..-2] means "keep everything in between" ?
>
> Right.
>
> So, "hello, world!"[1..-2] => "ello, world"
>
> -s


Thank you very much.

--
Posted via http://www.ruby-....