From: Xiangrong Fang Date: 2003-08-28T23:28:47+09:00 Subject: Re: Advanced Ruby Programming Oh, that's part of a regexp? Thanks a lot :) Shannon On Thu, 28 Aug 2003 22:08:51 +0900 Iain Truskett wrote: > * Xiangrong Fang (xrfang@hotmail.com) [28 Aug 2003 22:49]: > > [...] > > 1. what is the use of nested modules? i.e., why? > > Separation of code? > > > 2. What is the meaning of the following code? especially > > the "(?:" and "(?# 1:"? > > > (#{PATTERN::SCHEME}): (?# 1: scheme) > > (?: > > (#{PATTERN::OPAQUE_PART}) (?# 2: opaque) > > (?:...) and (?#...) are documented in the pickaxe. > > Respectively they are 'cluster' (group without capturing), > and 'embedded comment'. > > > cheers, > -- > Iain. > -- Xiangrong Fang