Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Swapping characters in a string
Michael W. Ryder
4/30/2007 2:01:00 AM
Is there any way in Ruby, short of stepping through a string character
by character, to swap two characters? For example, if I want to replace
all of the commas with periods and periods with commas.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Swapping characters in a string
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