Wanghy-Regex provides a simple, unified interface to the J2SE 1.4 regular expression package and Jakarta ORO removing compile-time dependencies on any particular regular expression-processing implementation.


  • When J2SE 1.4 or later is detected, Wanghy-Regex uses the classes in the package java.util.regex.

  • When working with a previous version of J2SE, Wanghy-Regex uses the classes in the package org.apache.oro.text.regex. Only in this case Jakarta ORO is a required dependency.

  • Currently supports:

    1. Match operations against regular expression patterns
    2. Retrieval of groups captured from a match operation

  • Coming features:

    1. Support for flags for compiling regular expression patterns
    2. String split
    3. String substitution

  • Comprehensively Test Coverage. See the Clover test report.

For more information, see the Getting Started Guide, Change Report, and the JavaDocs.

Rationale for Creation

This project was created because I could not find a library offering similar functionality while working on Wanghy-Cache. Please send me an e-mail if you know about any project or library with comparable capabilities.