From: ts Date: 2003-04-15T00:15:57+09:00 Subject: Re: How do I call a regex from C? >>>>> "J" == Jim Freeze writes: J> re_equal = rb_reg_regcomp("\\s*=\\s"); J> re_space = rb_reg_regcomp("\\s+"); See [ruby-talk:69375], you must give a VALUE (rb_str_new2()), not a string p.s. : I hope that re_equal and re_space are protected against the GC Guy Decoux