From: Michael Campbell Date: 2002-04-09T01:34:18+09:00 Subject: Re: ruby-dev summary (Shared subpattern) --- ts wrote: > >>>>> "M" == Michael Campbell > writes: > > >> /(ab*c+d)XXX(?*1)/ > > M> This looks to me like a simple back-reference, no? > > M> i.e.: /(ab*c+d)XXX(\1)/ > > No, > > \1 is the string matched by the 1st () > (?*1) is the *pattern* given in () > > The goal, if I've well understood, is to have shared pattern, > i.e. internally the pattern will *not* be duplicated Of course you're 100% correct; I realize my mis-thinking here now. (ab*)X(?*1) will match: aXba, aXa, abXabbbb, etc. Thanks. ===== -- Yahoo IM: michael_s_campbell __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/