From: Gary Wright Date: 2007-10-25T03:26:43+09:00 Subject: Re: string method that takes in a regex On Oct 24, 2007, at 2:06 PM, 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). str = "abc" str[/bc/] # "bc" which evaluates as true str[/bd/] # nil which evaluates as false Gary Wright