From: Aldric Giacomoni Date: 2010-04-01T03:11:24+09:00 Subject: Re: return number of spaces at the beginning of a line Josh Cheek wrote: > On Tue, Mar 30, 2010 at 9:35 AM, Robert Klemme > wrote: > >> And it has the disadvantage over str[/\A */].length that likely is >> slower because of the alternative. >> > There was a blog by Yehuda Katz that implied to me that these globals > weren't set until you asked for them, No, they are created as soon as the regular expression is parsed. I believe Wycats explained that somewhere else, but I can't find the link at the moment. -- Posted via http://www.ruby-forum.com/.