Is it possible to automatically convert a Javacript regular expression to a Java regular expression? I find that it's often tedious to manually convert Java regular expressions to JavaScript regular expressions, and vice versa, so I want to find a way to automate this conversion.
For example, it would be useful to convert a regular expression like this one from JavaScript to Java regex syntax, and vice-versa:
/(I|you|me).*(d|st)(o|a)(|gger)(ing|ed)/
<-- This matches "I will stagger", "you have staggered", etc.
Are there any automated conversion tools that can convert regular expressions from Java to JavaScript, and vice-versa?