From: Phrogz Date: 2007-08-21T12:25:00+09:00 Subject: Re: Regexp: named captures On Aug 20, 5:17 pm, Ari Brown wrote: > On Aug 20, 2007, at 6:10 PM, Phrogz wrote: > > > What do you mean by "change the syntax"? > > I mean change the basic regexp syntax. > > > For example, Oniguruma supports named captures (per this thread) and > > zero-width negative lookbehind assertions, and ... more. > > > Certainly the syntax is different for new features, which cause the > > current regexp engine to barf. Do you mean syntax inside the regex? Or > > the syntax for declaring a regex? Or are you interested only in > > backwards compatibility? > > So yea, just backwards compatibility. > > Is Oniguruma behind a new class Oniguruma.new or behind Regexp.new > > Sorry, but I can't seem to find much documentation on it. I believe that under 1.8 it comes as its own class, but in 1.9 on it is the code behind the builtin Regexp class. (I could be wrong, though. There may be a way to build 1.8 using Oniguruma as the basis for Regexp.) And, from what I know, all regex features available in 1.8 use the same syntax in Oniguruma.