From: ts Date: 2003-04-15T00:06:08+09:00 Subject: Re: How do I call a regex from C? >>>>> "J" == Jim Freeze 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