You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Gould, Troy (ELS)" <T....@Elsevier.com> on 2003/08/13 22:14:38 UTC

AbstractRegexpMatcher.java

My first post to the dev mailing list...

Has anyone considered using jakarta ORO instead of jakarta regexp for doing
RegExp Matching?  Particularly in the AbstractRegexpMatcher.  Or have
another RegexpMatcher that uses ORO instead of regexp?

I've found out that the regexp project is a "light-weight" tool, while the
oro project gives me much more advances RegExp matching abilities.  I've
actually already built another AbstractRegexpMatcher to use oro and am using
in a project I'm working on.  My reason for doing this came today when I
needed to do zero-width negative lookaheads which regexp doesn't seem to
support.

I would be happy to contribute it to the project.

Regards,
Troy Gould

Re: AbstractRegexpMatcher.java

Posted by Marc Portier <mp...@outerthought.org>.
Troy,

I might be missing something but AFAICS the jakarta-regexp 
dependency is mainly just legacy we're reluctant to touch, while 
most new regex-needing additions are opting for the oro 
dependency (probably for the reasons you mention)

I would be +1 to the allignment effort that removes the 
'historical' jakarta-regexp dependency from our code...
(support on jdk 1.3 makes it impossible to use the 1.4 regexp 
support)

So please proceed and keep us posted?

Any other opinions on this?

-marc=


Gould, Troy (ELS) wrote:
> My first post to the dev mailing list...
> 
> Has anyone considered using jakarta ORO instead of jakarta regexp for doing
> RegExp Matching?  Particularly in the AbstractRegexpMatcher.  Or have
> another RegexpMatcher that uses ORO instead of regexp?
> 
> I've found out that the regexp project is a "light-weight" tool, while the
> oro project gives me much more advances RegExp matching abilities.  I've
> actually already built another AbstractRegexpMatcher to use oro and am using
> in a project I'm working on.  My reason for doing this came today when I
> needed to do zero-width negative lookaheads which regexp doesn't seem to
> support.
> 
> I would be happy to contribute it to the project.
> 
> Regards,
> Troy Gould
> 

-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at              http://radio.weblogs.com/0116284/
mpo@outerthought.org                              mpo@apache.org