From: Kevin Ballard Date: 2005-10-19T22:51:58+09:00 Subject: Re: attaching code to run on regular expression match 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.