From: matz@... (Yukihiro Matsumoto) Date: 2002-06-04T00:09:38+09:00 Subject: Re: regexp#options in 1.7.2 Hi, In message "regexp#options in 1.7.2" on 02/06/03, james@rubyxml.com writes: |Regexp objects in Ruby 1.7.2 have an 'options' method. Poking around, I se |that it returns an integer version of the options flags, but can't figure |out what the bit in position 8 (assuming far right is position 1) is |supposed to be: | | re = Regexp.new("ruby", Regexp::IGNORECASE | Regexp::EXTENDED) | p re.options # 131 (000000000000000000000000010000011) | re = Regexp.new("ruby", Regexp::IGNORECASE ) | p re.options # 129 (000000000000000000000000010000001) | |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? matz.