From: Rasputin Date: 2003-08-21T03:27:57+09:00 Subject: Re: What attracts me to Ruby * Matt Lawrence [0823 19:23]: > On Wed, 20 Aug 2003, MikkelFJ wrote: > > > The $ syntax is widely recognized to be a mistake - it helps Perlers > > intially but it doesn't bring anything to the table you couldn't express > > easily in a cleaner syntax. I think it is fair to say that it is considered > > bad form to use $ in Ruby code, but then I guess many have just gotten used > > to it. > > I've often wondered if there was a good alternative to using $1, $2, $3, > etc. to pull stuff out of a string that has been matched with a regular > expression. Ideas? See bottom of http://www.rubycentral.com/book/tut_stdtypes.html (the 'Object-Oriented Regular Expressions' section) -- Good day for overcoming obstacles. Try a steeplechase. Rasputin :: Jack of All Trades - Master of Nuns