>>>>> "P" == Picavet Vincent <Vincent.Picavet / vt.siemens.de> writes:

P> How to achieve this simple operation ?

 You can call rb_funcall(), if you want to call String#replace. Something
 like this 

 str = rb_funcall(str, rb_intern("replace"), 1, str1);


Guy Decoux