>  if line =~ /^////.*/

if line =~ /^\/\//

if line =~ %r{^//}

(note that the .* does nothing in your original regexp, i.e. it can be 
removed without changing the behaviour)
-- 
Posted via http://www.ruby-forum.com/.