From: Jim Freeze Date: 2002-11-16T08:11:13+09:00 Subject: Re: Regexp: What does //o do? On Saturday, 16 November 2002 at 7:46:48 +0900, Holden Glova wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I'm not sure I can agree that this is the same regex, Jim is setting it to nil > at the end of the function so that also is 2 different regex objects. What > sort of voodoo is going on here? I too am confused. I didn't know about the > /o modifier and I think it is pretty cool, now if it just made sense to > me.... :) > The best I can figure is, as the last poster said, that it is in a different position in the code. So, I guess, that /blah/o is evaluated only once during the process, and re is set to the evaluated regex when foo is called the second time. That is ok. Wierd, but ok. Now, what does it do if the RE is defined in an eval? -- Jim Freeze ---------- Do what comes naturally now. Seethe and fume and throw a tantrum.