RE operations - script to Java migration
For the RE operations, not all of the script operations from the Script API are implemented in the Java™ API. Alternative Java code is provided for those script operations that are not implemented in the Java API.
The following RE methods can be achieved by using org.apache.regexp.
| Script operation | Alternative Java code |
|---|---|
| buildRE | Org.apache.regexp.RE = new RE(pattern, matchFlags.intValue) |
| new RE | Org.apache.regexp.RE = new RE(pattern, matchFlags.intValue) |
| Match | Org.apache.regexp.RE.match(str) |
| substitute | Org.apache.regexp.RE.subst(substrituteIn, substitution); |