We chose to use jregex for an internal project.
However, we needed support for posix named classes,
like [:digit:] and [:^space:], which were not available
in jregex.
Examining the code in CharacterClass.java, I found that
there was actually definitions for posix classes, but
the parser didn't look for them. I added the necessary
parsing code, but in the process of testing, I found
that the handling of hex and octal backslash escapes
was buggy. Finally, while fixing all that, I added a
position indicator to the parser error messages emitted
in Term.java and CharacterClass.java.
Since we wanted to add jregex to our project, we needed
a way to build the jar as needed. To this end, I wrote
a simple Makefile.
The patches are available here: