Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: string slice elegant way
Nuralanur
3/3/2006 1:37:00 PM
You can use
a="hello there"
b=a[2..-1]
p b => "llo there"
a[2..-2]
chops off from the end.
Best regards,
Axel
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: string slice elegant way
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password