From: Glenn Parker Date: 2005-04-07T00:20:00+09:00 Subject: Re: Regular expression mismatch ? Han Holl wrote: > > Why does the following: > > s = "aaa aaa\n\n\nbbb bbb" > puts(s =~ /^\s+$/) > > produce: 8 (instead of nil) ? Maybe you would rather use \A and \Z instead of ^ and $: puts(s =~ /\A\s+\Z/) => nil -- Glenn Parker | glenn.parker-AT-comcast.net |