From: "David A. Black" Date: 2007-10-25T03:12:41+09:00 Subject: Re: string method that takes in a regex Hi -- On Thu, 25 Oct 2007, Parv G. wrote: > Hi, > Is there a string method that takes in a regular expression AND returns > a boolean value? > > Looking at the documentation i can't find a method that meets my > requirements (very surprising). I think the idea is that as long as matching methods return either something or nil, you can always use them in conditionals, so they might as well return something that might have some other use. David -- Upcoming training by David A. Black/Ruby Power and Light, LLC: * Advancing With Rails, Edison, NJ, November 6-9 * Advancing With Rails, Berlin, Germany, November 19-22 * Intro to Rails, London, UK, December 3-6 (by Skills Matter) See http://www.rubypal.com for details!