Are there any libraries that supports this regexp-specification in java?
Know the Mozilla Rhino uses this specification, but how can this be implemented in java?
UPDATE:
Found a library called jakarta-oro that supports perl5-regular expression w开发者_如何学JAVAhich uses ecma-262.http://jakarta.apache.org/oro/index.html
If Rhino supports it, why not use the Rhino scripting support in Java to use Rhino? Look up JSR-223, and you can use javascript in a Java application if that's what you need.
精彩评论