From: Stefan Matthias Aust Date: 2001-05-26T19:40:04+09:00 Subject: [ruby-talk:15753] Re: java based interpreter and regexes "Wayne Blair" wrote: >> So don't worry about the speed of the regexp code. I also doubt that >> this would be the most difficult part for a Ruby interpreter written >> in Java. To get it compatible with all "features" of the C one is >> much more challenging IMHO. > >Would the goal be to make it compatible with the ruby C regex implementation >or with its specification? Well, with "it" I was actually referring to Ruby as whole, not to the regexp package. But yes, one has to decide what kind of compatibility one want to achieve, both to Java and to C-Ruby. Java's unicode support could be another source of possible incompatibilities. >The minus, of course, is that current code might exhibit different behavior >on the two implementations as each fails to correctly implement the >spec in its own ways. Well, for me it looks like the Java one is a superset of the Ruby RE engine, but perhaps somebody who knows more about RE want to look at http://java.sun.com/j2se/1.4/docs/api/java/util/regex/Pattern.html bye -- Stefan Matthias Aust \/ Truth Until Paradox