From: ara.t.howard@... Date: 2005-12-16T05:37:29+09:00 Subject: Re: challenge - regex which matches nothing On Fri, 16 Dec 2005, Mike Fletcher wrote: > unknown wrote: >> this is the best i've come up with >> >> %r/^(?!.*)$/m > > %r/\z\A/ ? close irb(main):020:0> "" =~ %r/\z\A/ => 0 -a -- =============================================================================== | ara [dot] t [dot] howard [at] noaa [dot] gov | all happiness comes from the desire for others to be happy. all misery | comes from the desire for oneself to be happy. | -- bodhicaryavatara ===============================================================================