[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:01880] Global matching/sub?

From: David Suarez de Lis <excalibor@...>
Date: 2000-03-16 14:10:19 UTC
List: ruby-talk #1880
Hi all,

I've been trying to do global matching (what would be / /g in grep or perl) but I cannot find any way to do it...

I need it to be able to do:

    a = "A stringgg with several thingggs I'd like to substitute"
    a.sub!(/gg/, '')

for all /gg/'s...

thanks a bunch,
d@
-------------------------------------------------------------
Mensaje enviado gracias al correo gratuito de Demasiado Corp.
[ http://correo.demasiado.com ]
-------------------------------------------------------------

			   

In This Thread

Prev Next