java.xml/com.sun.org.apache.xerces.internal.impl.xpath.regex.REUtil - Regular Expression Tool

Q

How to run "java.xml/com.sun.org.apache.xerces.internal.impl.xpath.regex.REUtil" tool from JDK lib\modules JImage file?

✍: FYIcenter

A

"java.xml/com.sun.org.apache.xerces.internal.impl.xpath.regex.REUtil" tool allows you to perform a regular expression match on a given string.

"java.xml/com.sun.org.apache.xerces.internal.impl.xpath.regex.REUtil" tool is supported by the jmods\jdk.xml.jmod module file, which is also linked into the lib\modules JImage file in JDK 9, 10, and 11.

java.xml/com.sun.org.apache.xerces.internal.impl.xpath.regex.REUtil" tool using the lib\modules JImage file as described below using JDK 11 as an example:

C:\fyicenter>set JDK_HOME=\fyicenter\jdk-11.0.1

C:\fyicenter>%JDK_HOME%\bin\java --module java.xml/com.sun.org.apache.xerces.internal.impl.xpath.regex.REUtil

Error:Usage: java REUtil -i|-m|-s|-u|-w|-X regularExpression String

C:\fyicenter>%JDK_HOME%\bin\java --module java.xml/com.sun.org.apache.xerces.internal.impl.xpath.regex.REUtil o "Hello world!"

RegularExpression: o
Matched range for the whole pattern: 4, 5, "o"

 

jdk.compiler/com.sun.tools.doclint.DocLint - DocLint Tool

java.scripting/com.sun.tools.script.shell.Main - JavaScript Shell

Tools Supported from JDK 9+ lib\modules JImage

⇑⇑ FAQ for JDK (Java Development Kit)

2019-10-18, 240👍, 0💬