From: James Edward Gray II Date: 2005-04-23T00:47:51+09:00 Subject: Re: [QUIZ] HighLine (#29) On Apr 22, 2005, at 10:41 AM, Bill Kelly wrote: > I think he meant along the lines of: > > irb --simple-prompt >>> p "looks ok!" if "01010\nsystem('rm -rf /')" =~ /^[01_]+$/ > "looks ok!" Oops, my Perl habits are showing. My bad. The Regexp should be /\A[01_]+\Z/. I'll correct it on the Ruby Quiz site. Thanks. James Edward Gray II