>>>>> "J" == Jim Freeze <jim / freeze.org> writes:

J>  // I don't think this is allowed -------v
J>  rb_funcall(line, "gsub!", 2, re_equal, "=") 

 not allowed : you must give only VALUE

J>  // should probably be this.
J>  rb_funcall(line, "gsub!", 2, re_equal, sp) 

 yes, this must work if you replace "gsub!" with rb_intern("gsub!")

J> What if I want to replace with an empty string ""?

   rb_str_new2("")


Guy Decoux