From: ts Date: 2003-04-14T23:25:03+09:00 Subject: Re: How do I call a regex from C? >>>>> "J" == Jim Freeze writes: J> If I use rb_funcall, Do I have to make two calls? One J> to create the regex and one to apply it? J> Is there a faster way? It really depend what call you want to do. For example, String#sub can take a String or a Regexp as the first argument. You can call Regexp::new (via rb_funcall) To create a regexp you have also rb_reg_regcomp(VALUE). You can use perhaps also rb_reg_match() Guy Decoux