The gnu.regexp package provides a Java language implementation of standard NFA regular expression features and a convenient API for compiling, matching and manipulating regular expressions in a variety of popular syntaxes (Perl-style is the default).
There are no reported vulnerabilities