On Wed, 25 Aug 2004 23:09:00 +0900, James Edward Gray II <james / grayproductions.net> wrote: > On Aug 24, 2004, at 10:01 PM, James Britt wrote: > " ãà¡Ö symbol variables ($1 etc)" > > This one will kill me. <laughs> I'm very used to handling my > substitutions this way, being a Perl guy. Can I get an example of "The > Ruby Way" to do a search and replace without these, please? [...] > I'm assuming it's because what's going on in these situations isn't > always immediately obvious to readers of code. If that's the case > though, I have to say I disagree with the $1..$9 call. That's a regex > standard and downright handy. It will be missed, by me at least. No, it's *not* a regex standard. It's a Perl standard. Regex "standard" is \1, \2, etc. for backreferences. Look at "ri MatchData" and you'll begin to see the Object behind a Regexp result -- and that's the Ruby Way to do it. -austin -- Austin Ziegler * halostatue / gmail.com * Alternate: austin / halostatue.ca