regex - XML regular expressions flavor to Java regular expressions -
Is there a device or library used to translate the regular expression used in XSD (as described) Is the class of Java used to taste? Or, if unsuccessful, a Java Regular Expression Library which can handle XML Regular Expression Taste directly? Or if unsuccessful, what is the equivalent of the Java regular expression for the following XML regular expression?
& lt; Xs: pattern value = "[\ w \ d] [\ w \ d \ -_.! \ ~ \ * '\ (\) \ + =] {2,}" />
Yes, see
However, note that this targets JDK 1.4 Regular Expressions, not JDK 1.5 A great deal of its work is worried by the fact that JDK 1.4 does not handle non-BMP characters properly, a problem which is removed in JDK 1.5. If you have found a suitable version of Saxon (try 9.1), then you will find a version of this code optimized to target JDK 1.5. (Recent versions of Saxon have implemented the XSD / XPath regex bid originally.)
Comments
Post a Comment