Gregory Seidman
10/24/2007 6:38:00 PM
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