Super Contributor.. JamesLindsay Super Contributor..
Super Contributor..

JavaScript (Rhino) and RegEx

I'm trying to understand why I am able to construct javascript with regular expressions that debug just fine in development environments outside of OO, but once placed as a scriptlet produce different results. I have read there are bugs in the regex implementation within Rhino so I was wondering if perhaps my Studio is not using an up to date version?


Improve Rhino’s RegExp using Java’s java.util.regex

Mozilla Rhino doesn’t use the facilities of java.util.regex to implement regular expression support in JavaScript but provides own regular expression implementation. Sadly this implementation is both buggy (see bug 369860) and slow.


Labels (1)
1 Reply
Micro Focus Expert
Micro Focus Expert

Re: JavaScript (Rhino) and RegEx



I would recommend you open a support case to pursue this further. 



The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.