From: Roger Lipscombe Date: 2001-07-27T21:42:16+09:00 Subject: [ruby-talk:18626] Re: Regex problems > and if you want to get rid of that extraneous $2, you can use ?: to > prevent the inner grouping from setting a variable: > > irb 12> re = /\b((?:[A-Z][a-z]+){2,})\b/ > irb 13> str.scan(re) > ==>[["ThisShouldWork"]] That works great. Thanks a lot. Cheers, Roger.