From: vikkous Date: 2005-04-26T09:49:37+09:00 Subject: Re: Announcing Reg 0.4.0 itsme213 wrote: > - can I bind variables to (parts of) matches I guess what you're asking for is like the functionality of backreferences, which aren't implemented yet. Binding a variable is somewhat different, I guess but allows you to do the same sort of thing. It could be implemented, not necessarily easily for global vars, and maybe for others too using Binding.of_caller. > - any convenient way to match "all" ... like r*(size..size) Uhh... well, OB matches any single object and OBS matches 0 or more of any object. One great thing about reg is that you can name your own subexpressions if you happen to need a matcher that matches -[some long reg that I dont want to type over and over], you can write: foo=-[some long reg... etc] and then use foo everywhere in your larger reg. This is a major weakness of regexps, and was one of the great things about gema in comparison. For instance, modulo optimizations, the definitions of OB and OBS are: OB=Object.reg OBS=OB+0