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, but are you sure named
subexpressions aren't already in Ruby? I thought they were, but I've
only actually used them in TextMate (an OS X text editor that uses
Oniguruma as its regex engine).

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.