Is there an existing robust Java library that implements a fairly substantial subset of Perl regular expression syntax?
Background:
I want to implement a rename file where renaming is done using Perl regular expressions.
The trick is that the project containing the mentioned renamer as a component is currently 100% Java in Windows.
NOTES:
I put off the obvious workaround for “install Strawberry Perl”, write all renamer in Perl (or teach Perl a Java coding developer), pass a list of files to rename to a Perl renamer script via a system call with Java “, too cunning and too evident:)
Also, don’t offer a comparison of how Java and the best RegEx engine are already good enough to do most of what Perl RegEx does - I know its functionality well enough (and maybe google); thus, I already know that this statement can be true; this, however, has nothing to do with my interest in the actual Perl RegEx syntax implemented as a Java library.
source share