On Oct 19, 2005, at 8:51 AM, Kevin Ballard wrote:

>
> Pit Capitain wrote:
>
>> OK, thanks for your example. I think the regexp engine of Ruby 1.9
>> called Oniguruma supports something like named sub-expressions, which
>> might be what you need.
>>
>
> Oniguruma is indeed the regexp engine of Ruby

Ruby 1.9 you mean.

> but are you sure named subexpressions aren't already in Ruby?

If you just download and build Ruby 1.8, you don't get Oniguruma yet.

> Hrm, I just tested and it does appear that named subexpressions aren't
> in Ruby 1.8. That's interesting, because I thought Oniguruma supported
> them quite a while ago.

You can build 1.8 to use it, but you must purposefully do so.

James Edward Gray II