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

-- 
Posted via http://www.ruby-forum.com/.