From: Gregory Seidman Date: 2007-10-25T03:37:44+09:00 Subject: Re: string method that takes in a regex On Thu, Oct 25, 2007 at 03:06:36AM +0900, 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). % irb >> /foo/ === 'foo' => true >> /foo/ === 'bar' => false >> > Thanks, > ParvG --Greg