[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
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.