From: james@... Date: 2002-06-04T00:29:42+09:00 Subject: RE: regexp#options in 1.7.2 > -----Original Message----- > From: Yukihiro Matsumoto [mailto:matz@ruby-lang.org] > Sent: Monday, June 03, 2002 8:10 AM > To: ruby-talk ML > Subject: Re: regexp#options in 1.7.2 > Importance: High > > > Hi, > > In message "regexp#options in 1.7.2" > on 02/06/03, james@rubyxml.com writes: > > ... > |I couldn't find any regexp constants defined for 128. What is > this value > |for? > > It's revealing internal optimize flags (128 means "pattern begins with > exact string"). Should I hide them? No, this is potentially useful information. I wonder if Regexp#options should take an optional bit mask parameter. Then you could query for, or omit, particular bit sets: MASK_BEGINS_WITH_EXACT = ~128 p re.options( MASK_BEGINS_WITH_EXACT ) # omit bit at location 8 Thanks, James > > matz. >