From: "Wolfgang Nádasi-Donner" Date: 2005-07-31T06:21:03+09:00 Subject: Re: [Brainstorming Input] Ruby-Oniguruma interoperability on Named Groups >>>>> snip >>>>> Can't we do that already? example = /a|b|c|d/ mybigregex = /#{example}|foo/ If you need more scope, use constants. >>>>> snap >>>>> It is not the same, because you include the textual data (it is somehow like usind the C preprocessor). There are two disadvantages: 1) During debugging or things like this you don't see your constructed structure - you have to work with the final regular expression 2) You cannot manage recursive constructs, which are possible using '\g'. This is a standard part on Oniguruma. -- Wolfgang N�dasi-Donner wonado@donnerweb.de