From: James Edward Gray II Date: 2004-10-19T03:51:23+09:00 Subject: Re: [QUIZ][SOLUTION] Regexp.build() (#4) On Oct 18, 2004, at 10:16 AM, Warren Brown wrote: > To me, the real challenge of this quiz was to specify ranges as > REs. > > I took the challenge of trying to find the smallest RE representation > of a range. This brings up an interesting point. What is the smallest regex to match 1..1_000_000? ^(1000000|[1-9]\d{0,5})$ That's my best guess. James Edward Gray II