finally I used java regexes because it was a quite simple expression and the class where I was using it didn't have access to the runtime and I didn't want to change the api so much. You can take a look here: http://jira.codehaus.org/browse/JRUBY-3907
On Fri, Aug 28, 2009 at 6:42 PM, Nick Sieger <[email protected]> wrote: > On Fri, Aug 28, 2009 at 2:58 AM, David Calavera<[email protected]> > wrote: > > Hi, I'm working in a patch for an issue and I want to use a regular > > expression to solve it but I have a question, what regular expression > engine > > should I use, java default pattern classes or joni engine? is there any > > convention for that? > > Depends on what you're trying to accomplish. If you're working with > Strings, then probably just using Java regexes would be fine. If > you're operating on byte arrays or ByteLists or a RubyString, then > directly constructing a RubyRegexp or using joni might be more > appropriate. > > /Nick > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- David Calavera http://www.thinkincode.net
