[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

replace multiple patterns of a string in single pass

Vellingiri Arul

9/19/2007 10:13:00 AM

Dear Friends,
How can I replace multiple patterns of a string in single pass.

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

1 Answer

Jeff

9/19/2007 1:48:00 PM

0

On Sep 19, 5:13 am, Vellingiri Arul <hariharan....@rediffmail.com>
wrote:
> Dear Friends,
> How can I replace multiple patterns of a string in single pass.
>
> by
> Vellingiri
> --
> Posted viahttp://www.ruby-....

Try String#gsub

Jeff