From: "Marcel Molina Jr." Date: 2006-05-24T05:22:03+09:00 Subject: Re: do i need a regex? On Wed, May 24, 2006 at 05:19:53AM +0900, newbie wrote: > i am trying to match the string "--(null)--" in ruby > > i am doing this after reading a line > > if line.match("--null--") > #code here > > its not working though > > would i need a regex You *could* use a regex but you don't *need* to if all you care about is inclusion of that string. if line.include?('--null--') marcel -- Marcel Molina Jr.